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

puppetlabs-iis : double slashes breaks iis_application

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Won't Do
    • IIS 4.5.0
    • None
    • iis, windows
    • puppet 5.5.8

      puppetlabs-iis 4.5.0

    • Needs Assessment

    Description

      I try the following code which failed with a powershell error :

      • create path
      • Install IIS

      In a profile add :

      create_resources('iis_application', hiera_hash('iis_application'))

       

      In Hiera:

       

      iis_application:
       
      'AppName':
       
      ensure: present
       
      sitename: "Default Web Site"
       
      physicalpath: 'c:\\inetpub\\wwwroot\\aspnet_client'
      

       
      This return :

      [1;31mError: Failed to apply catalog: 751: unexpected token at 'Get-WebConfiguration : Nom du fichier¶ÿ: \\?\c:\\inetpub\\wwwroot\\aspnet_client\web.configErreur¶ÿ: Impossible de lire le fichier de configurationAu caractÇùre Ligne:8 : 28+
       
       $sslFlags_raw = [String](Get-WebConfiguration -Location "${site}/${name}" -Fil ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    + CategoryInfo          : NotSpecified: (:) [Get-WebConfiguration], Fi
       
      leNotFoundException    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.IIs.PowerShell.Provider.GetCo
       
      nfigurationComman    d Get-WebConfiguration : Nom du fichier¶ÿ: \\?\c:\\inetpub\\wwwroot\\aspnet_client\web.configErreur
       
      ¶ÿ: Impossible de lire le fichier de configurationAu caractÇùre Ligne:18 : 44+       anonymous                   = [bool
       
      ](Get-WebConfiguration -Location "${sit ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
      ~~~~~    + CategoryInfo          : NotSpecified: (:) [Get-WebConfiguration], FileNotFoundException    + FullyQualifiedEr
       
      rorId : System.IO.FileNotFoundException,Microsoft.IIs.PowerShell.Provider.GetConfigurationComman    d '[0m
      

      To fix this don't use double '
      ' : physicalpath: 'c:\inetpub\wwwroot\aspnet_client'

      Attachments

        Activity

          People

            Unassigned Unassigned
            romgo Hugo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support