- From: AJ Christensen <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Re: out-of-the-box chef-client cookbook has no interval dial
- Date: Fri, 7 Oct 2011 14:36:06 +1300
Yo,
On 7 October 2011 14:27,
<
>
wrote:
>
On Fri, 07 Oct 2011, AJ Christensen wrote:
>
>
> Yo,
>
>
>
> Still getting rendered as a string here. You want that to appear as:
>
>
>
> interval 21600
>
>
>
> Please paste the relevant contents of your client.erb template.
>
>
[cheftain01]$ pwd
>
/home/kallen/sbox/ops/chef-repo/cookbooks/chef-client/templates/default
>
>
[cheftain01]$ head client.rb.erb
>
log_level :info
>
log_location STDOUT
Ahh..
>
interval "<%= node["chef_client"]["interval"].to_i %>"
Word, this line is bad. You want it to look like:
interval <%= node["chef_client"]["interval"].to_i %>
Per my original email, without any extra double quotes. :)
–AJ
>
>
<% if Chef::Config.has_key?(:chef_server_url) -%>
>
chef_server_url "<%= Chef::Config[:chef_server_url] %>"
>
<% else -%>
>
chef_server_url "<%= node["chef_client"]["server_url"] %>"
>
<% end -%>
>
validation_client_name "<%= node["chef_client"]["validation_client_name"]
>
%>"
>
>
Archive powered by MHonArc 2.6.16.