- From: Jens Skott <
>
- To:
- Subject: [chef] Re: Re: Question about recipes
- Date: Mon, 5 Nov 2012 16:45:38 +0100
Can you perhaps explain a bit more about the notifies or/and send me
some info where to find it in the wiki if possible? =)
Just want the config files to deploy when I updates them and if thay
have been updated restart the service, else exit 0.
I know how to do it in bash, just not in ruby(chef) yet.
Jens Skott
Tel: +46-8-5142 4396
Schibsted Centralen IT
2012/11/5 William Herry
<
>:
>
it will not run again the second time chef runs, most of resources are and
>
every time chef client runs, it will chef the resource status, if it is not
>
we expected(like package is not been installed), it will take the action to
>
bring that part to the status we expected, if it is already in the status we
>
expected(like package already installed), it will do nothing
>
>
about config file and service, you may want to use notifies, which mainly
>
means when config file changes, send some single(like restart) to the
>
service resource
>
>
hope this help
>
>
>
On Mon, Nov 5, 2012 at 10:02 PM, Jens Skott
>
<
>
>
wrote:
>
>
>
> I have a question about RPM:s and config files with chef.
>
> Im sorry if im writing a question I should find the answer to on the
>
> site but have not found any information regarding it or I could just
>
> have missed it.
>
>
>
> The question I have is. If I write a recipe that installs a RPM
>
> package trough yum, then deploys config files in specific directories
>
> and then restarts the enables and starts the service. Then have a
>
> dependency on apache recipe and does and action [:restart] on httpd
>
> service.
>
>
>
> What does the chef recipe actualy do the second time chef runs? Does
>
> it reinstalls the RPM and config files then restarts the httpd
>
> service? Or does it do a diff to see if its the same package and skip
>
> the installation and configfiles but restarts httpd?
>
>
>
> Anyone who can enlighten me or point me to a RTFM page? =)
>
>
>
> Jens Skott
>
> Tel: +46-8-5142 4396
>
> Schibsted Centralen IT
>
>
Archive powered by MHonArc 2.6.16.