先前安装了旧版本时,如何使用puppet更新Windows软件包?

时间:2019-09-23 20:52:25

标签: windows windows-10 puppet aws-cli

只要在任何Windows计算机上都没有问题,我的人偶模块就可以安装msi。但是问题是,当我去更新模块并放入较新版本时,它停留在先前版本上,而不是安装较新版本。这是街区

   package { 'AWS Command Line Interface':
       ensure          => "${awscli_version_for_install_windows}",
       provider        => 'windows',
       source          => "c:\windows\temp\AWSCLI_${awscli_version_for_install_windows}.msi",
       install_options => ['/qn', '/norestart', '/l*v', 'c:\windows\temp\awscli.log'],
     }

1 个答案:

答案 0 :(得分:0)

大家好,所以我实际上找到了解决方法。在install_options命令中,您需要包括“ REINSTALLMODE = AMUS”

package { 'AWS Command Line Interface':
       ensure          => "${awscli_version_for_install_windows}",
       provider        => 'windows',
       source          => "c:\windows\temp\AWSCLI_${awscli_version_for_install_windows}.msi",
       install_options => ['/qn', ‘REINSTALLMODE=AMUS’, '/norestart', '/l*v', 'c:\windows\temp\awscli.log'],
 }