On 09-05-11 14:29, Jeff wrote:
> Is it possible to extend 'package' without actually hacking the puppet
> code. I'd like to do this:
>
> package { "httpd":
> name => "httpd",
> ensure => "present",
> check => "newer",
> }
>
> My goal is this. For every package I have in puppet, I'd like to check
> to see if I have a newer version in the repository than I have on the
> server. If that's the case I'd like to record that. (Probably in a log
> file). This will allow me to produce a report of packages that need
> upgraded. I can't just "ensure => latest" because it violates our
> change procedure.
>
You could define a type, that wraps Package and uses an Exec to do
whatever you want.
Best regards,
Martijn.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" 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-users?hl=en.