On Thursday, July 26, 2012 at 4:34 PM, Jesse Nelson wrote:
This is in an execute resource, you should probably be using packagewith the rpm provider which should ensure idempotence.something like:package "foo" doaction :removeoptions "--nodeps"provider Chef::Provider::Package::RpmendUntested, but should work. Wiki says the rpm provider supports passing options.On Thu, Jul 26, 2012 at 4:28 PM, Greg Pendler < "> > wrote:The original recipe has "rpm -e --nodeps" - i'll probably need to changethat.--Greg PendlerSent with SparrowOn Thursday, July 26, 2012 at 4:26 PM, Jesse Nelson wrote:If you have a package resource with a remove action nothing willhappen unless the package is installed. I assume you have some otherreason you want to know if the package is installed ?On Thu, Jul 26, 2012 at 4:17 PM, Greg Pendler < "> > wrote:HiForgive me if this is a newbie question, but is there a good way to check ifa package (rpm) is installed before i remove it? I tried to search thearchives but couldn't dig anything useful so far.Thanks in advance,Greg
Archive powered by MHonArc 2.6.16.