Thanks Rob for guiding me.
The ensure => latest feature is not ready yet, because it requires an
upgradeable provider.
What seems to be solved is ensure => '0.0.1'.
At the link you provide they made the windows provider versionable. (That
requires facter version => 1.7.3-rc1)
I managed to apply it to Puppet, so I can do something like:
package { 'App':
ensure => '0.1.1',
provider => 'windows',
source => 'C:\\files\\packages\\App.msi',
}
Which installs a specific package without uninstalling any previous version
already installed... wierd :(
Any hint?
On Wednesday, October 23, 2013 8:18:34 PM UTC+2, Rob Reynolds wrote:
>
> Take a look at https://projects.puppetlabs.com/issues/21133. I'm not sure
> if there is an ensure => latest yet or not.
>
>
> On Wed, Oct 23, 2013 at 9:12 AM, Lorenzo Jesús Cubero
> <[email protected]<javascript:>
> > wrote:
>
>>
>> Hey! I would like to be able of upgrade a windows application just
>> copying the .msi file into a ../module/files directory, without having to
>> modify any manifest.
>> Something like:
>>
>> file { 'C:\\files\\packages\\Package.msi':
>> ensure => present,
>> source =>
>> 'puppet:///modules/SOME-MODULE/packages/Package.msi',
>> }
>>
>> package { 'Package':
>> ensure => installed,
>> provider => 'windows',
>> source => 'C:\\files\\packages\\Package.msi',
>> }
>>
>> The main problem I'm facing is to tell Puppet to install the latest
>> version, without defining the specific package. I would like to do
>> something like "version => latest".
>>
>> Any ideas on where to begin?
>>
>> --
>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/puppet-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Rob Reynolds
> Developer, Puppet Labs
>
> Join us at PuppetConf 2014, September 23-24 in San Francisco
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/958adf6c-b9ce-453c-a24c-c92db2ac5ac8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.