Puppet 代理 - 64 位 v4.0.0 操作系统 - Windows Server R2 64 位
我正在尝试使用Puppet 站点的 DISM 模块( https://forge.puppetlabs.com/puppetlabs/dism )安装 IIS。
我正在尝试运行以下脚本。我确定这是正确的。
dism {
'IIS-WebServerRole': ensure => present,
}
dism {
'IIS-WebServer': ensure => present,
}
该模块已正确安装,我已尝试重新安装几次,但我反复收到下面提到的错误。我该如何解决这个问题?
我正在使用木偶
C:\Program Files\Puppet Labs\Puppet\bin>puppet apply IIS_Install.pp
Error: Could not autoload puppet/type/dism: Attempt to redefine method set_present with block
Error: Evaluation Error: Error while evaluating a Resource Statement, Could not autoload puppet/type/dism: Attempt to redefine method set_pesent with block at C:/Program Files/Puppet Labs/Puppet/bin/IIS_Install.pp:2:3 on node win-i73ju1hai2q.localdomain
Error: Evaluation Error: Error while evaluating a Resource Statement, Could not autoload puppet/type/dism: Attempt to redefine method set_pesent with block at C:/Program Files/Puppet Labs/Puppet/bin/IIS_Install.pp:2:3 on node win-i73ju1hai2q.localdomain