Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-6257

puppetlabs/iis : iis_application resource unable to recognise application nested in subfolder of a site

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
      MODULES Bug Template
    • Epic Link:
    • Team:
      Windows
    • Sprint:
      Windows Kanban
    • Method Found:
      Needs Assessment
    • CS Priority:
      Normal
    • CS Frequency:
      3 - 25-50% of Customers
    • CS Severity:
      3 - Serious
    • CS Business Value:
      5 - $$$$$$
    • CS Impact:
      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.
    • QA Risk Assessment:
      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

      1. Create new IIS site named "test"
      2. Create subfolders named "SubFolder/IISApp" in "test" root folder
      3. 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',
        }
        

      4. 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
        

      5. 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
        

      6. 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

            Activity

              People

              Assignee:
              william.hurt William Hurt
              Reporter:
              halim.wijaya Halim Wijaya
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support