I've had issues in the past with searches that return nodes. The list of nodes won't come back in the same order every time and the template will write out on every run. You want to make sure to sort any array of hostnames returned by search.
From: Daniel DeLeo <
">
>
Reply-To: " "> " < "> > Date: Monday, October 15, 2012 9:01 AM To: " "> " < "> > Subject: [chef] Re: Re: Re: Re: Re: Template being updated every chef run On Monday, October 15, 2012 at 8:28 AM, Alfredo Palhares wrote:
Do you have another resource in your chef run or external process that is changing the file?
If you create a ruby_block resource to puts %x{ls -halp file} before your template resource, does it say what you expect?
Also, if you use Chef 10.14, you can run with -Fdoc -lfatal and you should see a content diff.
--
Daniel DeLeo
|
Archive powered by MHonArc 2.6.16.