[chef] Re: Re: query if the package already installed


Chronological Thread 
  • From: Andrew Shafer < >
  • To:
  • Subject: [chef] Re: Re: query if the package already installed
  • Date: Tue, 6 Jul 2010 12:20:09 -0600


I think he's asking a different question.

Vasiliy wants to conditionally do something based on packages being installed.

My opinionated answer is, you should not think about the problem this way.

You should specify that a package is installed or it is not, then do the appropriate things.

If you wanted to add functionality that would report installed packages, in my opinion, the appropriate place is probably ohai.

Then you could do whatever logic in the recipes.



On Tue, Jul 6, 2010 at 11:56 AM, Alex Soto < "> > wrote:
If you use the package resource it should be automatic.

On Jul 6, 2010, at 5:09 AM, Vasiliy G Tolstov wrote:

> I need to do specific actions in recipe if the some packages are
> installed. How can i check this automatic? Or i need to write some code
> (bash ...) ? Does chef Package resource provide query for installed
> packages ?
>
>
> --
> Vasiliy G Tolstov < "> >
> Selfip.Ru
>





Archive powered by MHonArc 2.6.16.

§