我想使用 Puppet 安装 Visual Studio,但每次运行 Puppet 时,安装程序都会一遍又一遍地安装 VS。
package { 'Microsoft Visual Studio 2012':
ensure => installed,
source => '\\goliath\Users\DanishKhakwani\VisualStudio\Premium\vs_premium.exe',
install_options => ['/SILENT', '/FULL'],
}
最佳答案
您需要确保 package name exactly matches the display name Visual Studio。
为了后代:
The title (or name) of the package must match the value of the package’s DisplayName property in the registry, which is also the value displayed in the “Add/Remove Programs” or “Programs and Features” control panel.
If the provided name and the installed name don’t match, Puppet will believe the package is not installed and try to install it again.
关于windows - Puppet 每次运行都安装 Visual Studio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31416154/