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

puppetlabs-iis : double slashes breaks iis_application

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Do
    • Affects Version/s: IIS 4.5.0
    • Fix Version/s: None
    • Component/s: iis, windows
    • Labels:
    • Environment:

      puppet 5.5.8

      puppetlabs-iis 4.5.0

    • Template:
      MODULES Bug Template
    • Team:
      Windows
    • Story Points:
      1
    • Sprint:
      Windows 2019-02-20
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      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

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

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support