On 02/15/2013 05:39 PM, Sean LeBlanc wrote:
> I should have added to my post that I've tried adding that "1:" as well
> to the ensure line with the same results.
>
> Any other ideas?
Have you run that catalog with the --debug flag? It would be interesting
to see just what the provider is trying to do and how it fails.
> I've tried this workaround:
>
> exec { "upgrade java":
> command => "yum -d 1 -e 1 upgrade
> java-1.6.0-sun-1:1.6.0.39-1jpp.4.el5_9.x86_64
> java-1.6.0-sun-devel-1:1.6.0.39-1jpp.4.el5_9.x86_64 -y",
> path => "/usr/bin/"
> }
>
> ...but it then runs every single time the puppet agent runs:
This can work, but you should then define a condition such as
unless => "rpm -q java-sun-1.6.0-sun | grep -q 39-1jpp"
It's a pretty gross workaround though ;-) I'd be interested to learn why
the provider won't manage to do what you want.
Cheers,
Felix
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.