Issue #17402 has been updated by Josh Cooper. Status changed from Needs More Information to Closed Keywords set to windows msi
Hi Luis, Prior to 2.7.19, puppet couldn't interrogate the system to see what was actually installed. Instead it kept track of things it had installed in a yaml file, see #11868. The bug was fixed in 2.7.19, causing the new behavior and the need to ensure the package name in the manifest matches the name that the system uses to identify the package. ---------------------------------------- Bug #17402: Package Resource Type for Windows processes MSI package even after it is installed https://projects.puppetlabs.com/issues/17402#change-75763 Author: Luis Emilio Reyes Status: Closed Priority: Normal Assignee: Category: Target version: Affected Puppet version: Keywords: windows msi Branch: The 'package' resource type for Windows continues to the run windows installer for MSI that puppet already installs. Take the following code: <pre> file { 'webdeploy.msi' : path => 'c:\\support\\WebDeploy_2_10_amd64_en-US.msi', ensure => 'file', source => "puppet:///modules/tenant-a/ws/WebDeploy_2_10_amd64_en-US.msi", mode => '0774', } package { 'webdeploy.v2' : ensure => present, provider => 'windows', source => 'c:\\support\\WebDeploy_2_10_amd64_en-US.msi', install_options => { 'ADDLOCAL' => 'ALL' }, require => File['webdeploy.msi'], } </pre> Puppet installs the webdeploy v2 successfully, however every puppet run afterwards continues to process the package even though the package has already been installed. The puppet dashboard tracks it as a 'Changed' event. Puppet dashboard event: <pre> Changed (1) Package[webdeploy.v2] (/etc/puppet/environments/stg/modules/tenant-a/manifests/ws/config.pp:17) Property Message ensure created </pre> Output from successive puppet runs: <pre> C:\Program Files (x86)\Puppet Labs\Puppet\bin>puppet agent -t Ignoring --listen on onetime run Info: Retrieving plugin Info: Caching catalog for vmpuppet022.amr.corp.intel.com Info: Applying configuration version '1351893745' /Stage[main]/Tenant-a::Ws::Config/Package[webdeploy.v2]/ensure: created Finished catalog run in 4.88 seconds C:\Program Files (x86)\Puppet Labs\Puppet\bin>puppet agent -t Ignoring --listen on onetime run Info: Retrieving plugin Info: Caching catalog for vmpuppet022.amr.corp.intel.com Info: Applying configuration version '1351893745' /Stage[main]/Tenant-a::Ws::Config/Package[webdeploy.v2]/ensure: created Finished catalog run in 6.86 seconds C:\Program Files (x86)\Puppet Labs\Puppet\bin>puppet agent -t Ignoring --listen on onetime run Info: Retrieving plugin Info: Caching catalog for vmpuppet022.amr.corp.intel.com Info: Applying configuration version '1351893745' /Stage[main]/Tenant-a::Ws::Config/Package[webdeploy.v2]/ensure: created Finished catalog run in 6.83 seconds </pre> In reviewing the windows application event log; MsiInstaller events are being generated for every puppet run: Beginning a Windows Installer transaction: c:\\support\\WebDeploy_2_10_amd64_en-US.msi. Client Process Id: 2820. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
