Skip to content

Commit

Permalink
Taking over the chef_server_url from the bootstrapping client.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ringo De Smet authored and jtimberman committed Feb 17, 2011
1 parent 3570656 commit 327bba7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chef-client/templates/default/client.rb.erb
@@ -1,6 +1,11 @@
log_level :info
log_location STDOUT

<% 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"] %>"
<% if @chef_node_name -%>
node_name "<%= @chef_node_name %>"
Expand Down

0 comments on commit 327bba7

Please sign in to comment.