dsc_authenticationinfo => {"Anonymous"=>false, "Basic"=>false, "Digest"=>false, "Windows"=>true},
を取得しようとしています。could not evaluate
エラーです。このプロパティはdsc_xwebsite {}の内部にあります。パペットDSCモジュール:評価できませんでした:タイプ 'INSTANCE []'からタイプ 'INSTANCE'にプロパティ 'authenticationinfo'の値を変換できませんでした
dsc_xwebsite{$app_dns_name:
dsc_ensure => 'Present',
dsc_name => $app_dns_name,
dsc_state => 'Started',
dsc_physicalpath => $app_webroot_path,
dsc_applicationpool => $app_pool_name,
dsc_bindinginfo => [{
protocol => 'HTTP',
port => 80,
hostname => $app_dns_name,
}],
dsc_authenticationinfo => {"Anonymous"=>true, "Basic"=>true, "Digest"=>true, "Windows"=>true},
}
Windows 2012 R2のホストで次のエラーが表示されます。
Error: /Stage[main]/Profiles::Iis_tools/Dsc_xwebsite[tools-dev.domain.com]: Could not evaluate: Convert property 'authenticationinfo' value from type 'INSTANCE[]' to type 'INSTANCE' failed
At line:31, char:2
Buffer:
ls-dev.domain.com";
};^
insta
私は間違った方向に潜んでいました。あなたの '$ app_dns_name'は文字列として渡されますか? '$ app_dns_name = ls-dev.domain.com'ではなく' $ app_dns_name = 'ls-dev.domain.com'のようにする必要があります。あなたの 'dsc_bindinginfo'はおそらく' dsc_xwebsite'型のソースコードに従ったハッシュの配列ではなく、ハッシュです。 –
いいえ、ls-dev.domain.comではありません。それはtools-dev.domain.comとされていますが、何らかの理由でエラーメッセージが 'あまりにも'消えてしまいます。 Puppetは$ app_dns_nameをhieraルックアップを介して文字列として返します。他のものが変数を適切に使用しているので、ルックアップが適切に行われているとはかなり確信しています。 – FuriousD