- From: Vasiliy G Tolstov <
>
- To: dreamcat four <
>
- Cc:
- Subject: [chef] Re: chef-server run list questions
- Date: Wed, 19 May 2010 18:30:56 +0400
- Organization: Selfip.Ru
В Срд, 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?
--
Vasiliy G Tolstov
<
>
Selfip.Ru
Archive powered by MHonArc 2.6.16.