--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.
Join us at PuppetConf 2014, September 23-24 in San Francisco
package { 'App':
ensure => '0.1.1',
provider => 'windows',
source => 'C:\\files\\packages\\App.msi',
}To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/958adf6c-b9ce-453c-a24c-c92db2ac5ac8%40googlegroups.com.
I am curious if you have also looked at the other package providers that are out there - http://forge.puppetlabs.com/modules?q=windows+packageI can tell you that the chocolatey provider does allow ensure => latest. Also the version on github is being improved to add source in addition to other things and will be updated sometime in the future.To answer your question about the uninstall with the windows package built-in provider, are you seeing this with all MSIs or just a specific one (perhaps that was custom built)? MSIs should upgrade themselves, unless there is an error in the MSI installer logic. Or if the logic allowed side by side installs, in which case I don't think the provider takes that into account.
That helped. Thanks. The key was to have the version in the title. I had 'Puppet' and needed 'Puppet 3.4.2'.
So this appears to be an inconsistency or, more likely, a lack of understanding on Windows packages and versioning (I'm a Linux guy). I have a module to deploy Java. To get that to work, I had to have 'Java 7 Update 45' in the title which corresponds to the Name field in the Control Panel Uninstall dialog. However, Puppet's entry just has 'Puppet' in the Name field. Using just 'Puppet' in the package definition would not trigger the install/upgrade. What is the proper method for this in Windows?
On Tuesday, January 14, 2014 9:38:55 AM UTC-6, Klavs Klavsen wrote:I use:
if ( $puppetversion != "3.3.1" ) {
package { "Puppet 3.3.1":
source => "\\\\software01\\autorepo\$\\Puppet\\puppet-3.3.1.msi",
install_options => [ '/quiet', '/norestart','PUPPET_MASTER_SERVER=puppet.example.dk']
}
}
to ensure a specific version on all windows hosts.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/1b781bd3-ad74-403f-858d-a8fbeaec5cd1%40googlegroups.com.