# <%= @file_name %>
#
# DO NOT CHANGE THIS FILE MANUALLY!
#
# This file is managed by the Chef `sys` cookbook.

log_level        <%= @log_level %>
<% if @use_syslog -%>
log_location     SyslogLogger.new("chef-client")
<% else -%>
log_location     STDOUT
<% end -%>

chef_server_url  '<%= @server_url %>'

validation_client_name "chef-validator"
validation_key   "/etc/chef/validation.pem"
client_key       "/etc/chef/client.pem"

file_backup_path "/var/backups/chef"
file_cache_path  "/var/cache/chef"
pid_file         "/var/run/chef/chef-client.pid"

# configuration for Ohai:
Ohai::Config[:disabled_plugins] = [ "<%= @odisable.join('","')%>" ]
Ohai::Config[:plugin_path]     << "<%= @opath %>" 

# <%= @file_name %>
#
# DO NOT CHANGE THIS FILE MANUALLY!
#
# This file is managed by the Chef `sys` cookbook.

chef_server_url  '<%= @server_url %>'
client_key       "/etc/chef/client.pem"
node_name        '<%= node.fqdn %>'

log_level        <%= @log_level %>
<% if @use_syslog -%>
log_location     SyslogLogger.new("chef-client")
<% else -%>
log_location     STDOUT
<% end -%>

validation_client_name "chef-validator"
validation_key   "/etc/chef/validation.pem"

file_backup_path "/var/backups/chef"
file_cache_path  "/var/cache/chef"
pid_file         "/var/run/chef/chef-client.pid"

# configuration for Ohai:
Ohai::Config[:disabled_plugins] = [ "<%= @odisable.join('","')%>" ]
Ohai::Config[:plugin_path]     << "<%= @opath %>" 

Add node_name attribute + some reorderings
Add node_name attribute + some reorderings
