尝试使用puppet在Windows上安装软件包时,出现以下错误。
Debug: Prefetching windows resources for package
Debug: Executing: 'msiexec.exe /qn /norestart /i C:\Users\Administrator\Downloads\LAPS.x64.msi'
Error: Failed to install: Fatal error during installation.
Error: /Stage[main]/installlaps/Package[laps]/ensure: change from 'absent' to 'present' failed: Failed to install: Fatal error during installation.
我尝试手动执行命令,但没有任何意外。
我要执行的代码:
package { 'laps':
ensure => 'present',
source => 'C:\Users\Administrator\Downloads\LAPS.x64.msi',
}
编辑:
我发现使用直接Web链接时不会发生此错误。但是,我现在遇到了幂等问题。
package { 'laps':
ensure => 'present',
source => 'https://download.microsoft.com/download/C/7/A/C7AAD914-A8A6-4904-88A1-29E657445D03/LAPS.x64.msi',
}