-
Notifications
You must be signed in to change notification settings - Fork 26

Description
Describe the Bug
Upgraded puppetlabs-pwshlib from 1.1.1 to 1.2.0 and this has caused dsc_webapplication to fail with the following error
Error: /Stage[main]/Website::testapp/iis::Webapp[WebAppName]/Dsc_webapplication[WebAppName]: Could not evaluate: Provider returned data that does not match the Type Schema for `dsc_webapplication[WebAppName]`
Value type mismatch:
* dsc_sslflags: (expects a value of type Undef or Array, got String)
Looking at the documentation for dsc_webapplication (below) in webadministrationdsc it stated that dsc_sslflags is optional.
https://forge.puppet.com/modules/dsc/webadministrationdsc/reference#dsc_sslflags
I've raised this here since the only change I made was upgrading pwshlib and the version of webadministrationdsc we have installed (4.1.0-0-3) states it supported pwshlib (>= 0.9.0 < 2.0.0). I've updated webadministrationdsc from 4.1.0-0-3 to the latest (4.2.0-0-0) but it still errors out.
Expected Behavior
I shouldn't need to specify the optional parameter.
Steps to Reproduce
Manifest
dsc_webapppool {
'WebAppName'
dsc_ensure => 'Present',
dsc_name => 'WebAppName',
dsc_state => 'Started',
dsc_autostart => true,
dsc_identitytype => 'ApplicationPoolIdentity',
dsc_startmode => 'AlwaysRunning',
dsc_maxprocesses => 1,
require => Dsc_windowsfeature['iis'],
validation_mode => 'resource';
}
dsc_webapplication {
'WebAppName':
dsc_ensure => 'Present',
dsc_website => 'servera.example.com',
dsc_name => 'WebAppName',
dsc_physicalpath => 'c:\www\',
dsc_webapppool => 'WebAppName',
validation_mode => 'resource';
}
Environment
- Version 2022
- Platform Windows Server
Additional Context
I put the issue in here and not in webadministrationdsc since it seems to be an issue with how Puppet is handling the parameters
Metadata
Metadata
Assignees
Labels
Type
Projects
Status