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

iis : iis_virtual_directory cannot manage dirs with the same name in different sites

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • None
    • None
    • iis
    • None
    • Server 2012R2
      IIS module 4.0
      Puppet 4.5.2

    • MODULES Bug Template
      • Should be able to manage virtual directories with the same name but in different sites.
    • Windows
    • Customer Feedback
    • Needs Assessment

    Description

      Repro steps
      1. Create a WebSites called SiteA, SiteB
      2. Create a virtual directory called blah in SiteA
      3. Apply example manifest

      iis_virtual_directory { 'blah':
        ensure       => 'present',
        sitename     => 'SiteB',
        physicalpath => 'C:\\inetpub\\App1',
      }
      

      Puppet output

      ...
       
      Notice: /Stage[main]/Main/Iis_virtual_directory[blah]/sitename: sitename changed 'SiteA' to 'SiteB'
      Notice: /Stage[main]/Main/Iis_virtual_directory[blah]/physicalpath: physicalpath changed 'C:\inetpub\logs' to 'C:\inetpub\App1'
      ...
      

      Note that it's trying to change the sitename for the vdir instead of creating a new one

      This is due to sitename not being part of the namevar
      https://github.com/puppetlabs/puppetlabs-iis/blob/master/lib/puppet/type/iis_virtual_directory.rb#L12-L23

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              glenn.sarti Glenn Sarti
              Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:

                Zendesk Support