- From: Daniel Condomitti <
>
- To: "
" <
>
- Subject: [chef] Re: Template being updated every chef run
- Date: Fri, 12 Oct 2012 19:53:47 -0400
Can you paste the entire template? If there's a Time.now or something
else that changes with each run it could cause it to be written every
time.
Sent from my iPhone
On Oct 12, 2012, at 7:33 PM, Alfredo Palhares
<
>
wrote:
>
Hello,
>
>
I have a simple template like this
>
>
template "/etc/nagios3/conf.d/pagerduty_nagios.cfg" do
>
source "pagerduty_nagios.cfg.erb"
>
owner "nagios"
>
group "nagios"
>
mode 00644
>
variables(
>
:pager => pagerduty["pager"]
>
)
>
notifies :restart, resources(:service => "nagios3")
>
end
>
>
What happens it that the template its updated every time chef-client runs,
>
and nagios is restarted
>
wich is bad, silly and annoying.
>
Chef claims the content, user and group changed. But it doesn't. File
>
checsum, user and group does
>
not change.
>
Here is the full chef-run[1]. User 104 is nagios user.
>
>
Help, because i am clueless why this happens
>
>
[1] http://paste.debian.net/199700/
[chef] Re: Template being updated every chef run, John Dewey, 10/12/2012
Archive powered by MHonArc 2.6.16.