Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
Windows
-
Windows Kanban
-
Needs Assessment
-
Normal
-
3 - 25-50% of Customers
-
3 - Serious
-
5 - $$$$$$
-
The IIS module should be idempotent. We aren't clear on this but the impact might also include forcing a restart of IIS which could be a disruption if it were a production web server.
-
Needs Assessment
Description
Basic Info
Module Version: 4.2.1
Puppet Version: 2017.2.3
OS Name/Version: Server 2012 R2
Describe your issue in as much detail as possible...
iis_application resource is unable to recognise existing application nested in a site subfolder.
Steps to reproduce
- Create new IIS site named "test"
- Create subfolders named "SubFolder/IISApp" in "test" root folder
- create new IIS application
iis_application { 'IISApp':
ensure => 'present',
applicationpool => 'DefaultAppPool',
applicationname => '/SubFolder/IISApp',
authenticationinfo => {
'iisClientCertificateMapping' => false,
'clientCertificateMapping' => false,
'anonymous' => true,
'basic' => false,
'windows' => false
},
enabledprotocols => 'http',
physicalpath => 'C:\inetpub\Test\SubFolder\IISApp',
sitename => 'test',
}
- Run puppet apply to create new iis application called IISApp
Notice: Compiled catalog for nt9y5wgj3zdmx4p.delivery.puppetlabs.net in environm
ent production in 0.19 seconds
Notice: /Stage[main]/Main/Iis_application[IISApp]/ensure: created
Notice: Applied catalog in 4.25 seconds
- Run puppet apply again. It is showing corrective changes and attempt to create the same IISApp application which should not be the case
Notice: Compiled catalog for nt9y5wgj3zdmx4p.delivery.puppetlabs.net in environm
ent production in 0.16 seconds
Notice: /Stage[main]/Main/Iis_application[IISApp]/ensure: created
Notice: Applied catalog in 4.14 seconds
- Run puppet resource iis_application. Note the name of the application *test\SubFolderIISApp*, it is missing one backslash.
iis_application { 'test\SubFolderIISApp':
ensure => 'present',
applicationpool => 'DefaultAppPool',
authenticationinfo => {
'iisClientCertificateMapping' => false,
'clientCertificateMapping' => false,
'anonymous' => true,
'basic' => false,
'windows' => false
},
enabledprotocols => 'http',
physicalpath => 'C:\inetpub\Test\SubFolder\IISApp',
sitename => 'test',
}
Desired Behavior:
Step 5 should not recreate new iis application that already exists
Step 6 should display the iis application name as *test\SubFolder\IISApp*,
Attachments
Issue Links
- mentioned in
-
Page Loading...