----- Original Message ----- > From: "Guillem Liarte" <guillem.lia...@googlemail.com> > To: puppet-users@googlegroups.com > Sent: Thursday, January 10, 2013 12:57:02 PM > Subject: Re: [Puppet Users] mcollective package plugin rpm versions > > Mr Pienaar, > > I would love to help adding it then. > > Where do I start?
Basically the line in the agent: pkg = ::Puppet::Type.type(:package).new(:name => package).provider loads up the puppet type without providing any version hints, so what you see there is equivalent to: package{"x": } and then we specifically call install/update/uninstall as needed. I suspect that if you just change that line to something like: pkg = ::Puppet::Type.type(:package).new(:name => package, :ensure => "1.2.3").provider ie. add an ensure property with your desired version, it would do the right thing, you could perhaps do a manual test to confirm that? If it does work we just need to pass the version from the client to this code and I can point you in the right direction with that. Probably best to take this to the mcollective-users list on google groups though -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.