On Tuesday, June 30, 2009 4:58:33 AM UTC-4, Peter Meier wrote:
While looking at the code and
http://reductivelabs.com/trac/puppet/wiki/TypeReference#package you'll
also see that the yum provider is purgeable and that the yum provider
has an own purge method.
So if this would fit your needs you can set ensure to purged and it
would use yum -y erase $package
While looking at the code and
http://reductivelabs.com/trac/puppet/wiki/TypeReference#package you'll
also see that the yum provider is purgeable and that the yum provider
has an own purge method.
So if this would fit your needs you can set ensure to purged and it
would use yum -y erase $package
around a "yum -y remove $name". The problem with ensure => purged is that
puppet isn't smart enough to realize the package is already purged so it
attempts removal every time. The first time does work, but the remainder
just make gobs of tagmail spam.
FTR, here's what I'm going back to, in case anyone finds it helpful:
define yum::remove {
exec { "yum -y remove ${name}":
onlyif => "rpm -q ${name}",
}
}
--
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.