- From: dreamcat four <
>
- To:
- Cc:
- Subject: [chef] Re: chef-server run list questions
- Date: Wed, 19 May 2010 16:34:48 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=YSCjiziq3Gm1crqyG7Lk8BLZyvoQN1XtieRxhEdwy2xMjnLXt9J/98D+tr0eYniWar iWtPOqz//BuNNQEFV1bt9tWq4Xxj86n75YM2BJpQpPa2hBcf35qsokY30pxlsy58yQVu FnNoiSo66V8HszMr9DJejvpM2pjHQbPOtd5rk=
On Wed, May 19, 2010 at 3:30 PM, Vasiliy G Tolstov
<
>
wrote:
>
В Срд, 19/05/2010 в 14:49 +0100, dreamcat four пишет:
>
> Vasilly,
>
> Be sure to use the #chef IRC channel at irc.freenode.net. This is best.
>
>
>
> Anyway, it seems to want your recipes to execute for 1 time only.
>
>
>
> Normally in chef, we expect our recipes are run over and over, at each
>
> node interval. So this is the "idempotent" part of chef. That means
>
> whatever the initial conditions, we expect that the computers
>
> configuration will end up in a consistent, known and repeatable state.
>
> That is, after any recipe is completed.
>
>
>
> If we want to run something once, then we put guard statements in our
>
> recipes, and check first whether something has been installed. Eg we
>
> dont want to install the webserver each time so we use "only_if" or
>
> "not_if" conditions. So skips over that part of the recipe if done
>
> once before.
>
>
>
> Therefore we dont expect the recipes to disappear from the run list.
>
> They should remain and be re-run. This is normal. It just means that
>
> the 2nd, 3rd time the recipe is just double checking that the things
>
> it manages are still configured right and in the correct place.
>
>
>
>
Ok. Thank's for answer. But if i want install all needed software only
>
once and after that shutdown chef-client and delete authorization token?
Sure, yes you can. Or run it once from cmdline with chef-solo.
>
--
>
Vasiliy G Tolstov
>
<
>
>
Selfip.Ru
>
>
Archive powered by MHonArc 2.6.16.