[chef] Re: Chef behavior question


Chronological Thread 
  • From: DV < >
  • To:
  • Subject: [chef] Re: Chef behavior question
  • Date: Sun, 22 Jun 2014 16:51:46 -0700

Well, "Chef" is going to do whatever the code in the recipe is telling it to do, really :) So if the recipe decides to update the config file then Chef will do so.


On Sun, Jun 22, 2014 at 2:24 PM, Justin Franks < " target="_blank"> > wrote:

Let's say...

Chef reads file /etc/somefile which contains a list of IP addresses
(The list of IP addresses in /etc/somefile will change on occasion)
Chef builds a config of MyService and uses the IP addresses in /etc/somefile in the config it builds
The file /etc/somefile changes. It now contains a new list of IP addresses
A local script catches the change and updates the config of MyService to reflect the new IP addresses
Moments later Chef runs again as normally scheduled.
What happens?
Does Chef read the file /etc/somefile, notice the new IP addresses and update the config thus "undoing" what the local script did?
Or will Chef say, "Hey, something changed the config for MyService. I better put it back to its original state by reverting the changes in the config file."



*************************
Justin Franks
Lead Operations Engineer
SaaS, Cloud, Data Centers & Infrastructure
Lithium Technologies, Inc
225 Bush St., 15th Floor
San Francisco, CA 94104
tel: +1 415 757 3100 x3219




--
Best regards, Dmitriy V.



Archive powered by MHonArc 2.6.16.

§