I ran into this too, and I think this is working for me:
exec { 'apt-get-fix':
command => "/usr/bin/apt-get -f -y install",
unless => "/usr/bin/apt-get check",
}
I'm still testing, but it's looking good right now.
Bryce
On Friday, August 23, 2013 10:37:41 PM UTC-7, Andy Coates wrote:
>
> Just come across this post after needing to do the exact same thing. I
> can get it to run independently by making the exec a require of the
> package, but then it will always run itself as well and I only want to run
> this exec after the package (but as you said the package fails due to the
> dependancies).
>
--
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.
For more options, visit https://groups.google.com/groups/opt_out.