Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Won't Do
-
IIS 4.5.0
-
None
-
puppet 5.5.8
puppetlabs-iis 4.5.0
-
Windows
-
1
-
Windows 2019-02-20
-
Needs 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'