Issue #17402 has been updated by Luis Emilio Reyes.

Confirmed... I updated the package title to match the "DisplayName" value and 
it is now working as expected. Thank you. What is interesting is that this 
module appeared to have 'worked' under version 2.7.18, I guess the glitch was 
fixed. :)  
----------------------------------------
Bug #17402: Package Resource Type for Windows processes MSI package even after 
it is installed
https://projects.puppetlabs.com/issues/17402#change-75747

Author: Luis Emilio Reyes
Status: Needs More Information
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
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.

Reply via email to