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

iis: virtual directory - can't set network share as physical path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: puppet_agent 1.4.1
    • Fix Version/s: None
    • Component/s: iis
    • Labels:
      None
    • Template:
      MODULES Bug Template
    • Epic Link:
    • Team:
      Windows
    • Sprint:
      DevInfraOps 2020-12-23
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      *Module Version:4.1
      *Puppet Version: 4.1.04
      *OS Name/Version: Server 2012 R2

      Describe your issue in as much detail as possible...

      *Desired Behavior: Set a network share as a physicalpath for a virtual directory:

      iis_virtual_directory

      { 'vd1': name => 'test', ensure => 'present', sitename => 'complete', physicalpath => '\\\\path\\to\\share' }

      *Actual Behavior:
      Error: Parameter physicalpath failed on Iis_virtual_directory[vd1]: File paths must be fully qualified, not '\\path\to\share'

      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/util/errors.rb:106:in `fail'
      -------/puppetlabs-iis/lib/puppet/type/iis_virtual_directory.rb:40:in `block (3 levels) in <top (required)>'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/parameter.rb:456:in `validate'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/property.rb:543:in `block in should='
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/property.rb:543:in `each'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/property.rb:543:in `should='
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/property.rb:595:in `value='
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/type.rb:675:in `[]='
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/type.rb:2492:in `block in set_parameters'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/type.rb:2486:in `each'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/type.rb:2486:in `set_parameters'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/type.rb:2401:in `initialize'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/resource.rb:524:in `new'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/resource.rb:524:in `to_ral'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:633:in `block in to_catalog'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:625:in `each'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:625:in `to_catalog'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:506:in `to_ral'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/application/apply.rb:263:in `block in main'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet.rb:306:in `override'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/application/apply.rb:225:in `main'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/application/apply.rb:170:in `run_command'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/application.rb:358:in `block in run'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/util.rb:542:in `exit_on_fail'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/application.rb:358:in `run'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'
      c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
      c:/Program Files/Puppet Labs/Puppet/puppet/bin/puppet:4:in `<main>'

      regex in iis_virtual_directory.rb, physicalpath property, line 40:

      /.\/|
      )/ or value =~ /
      \/\/[^\/]\/[^\/]/

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              james.pogran James Pogran
              Reporter:
              adonmez Ali Donmez
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support