File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545set_unless [ :chef ] [ :webui_port ] = "4040"
4646set_unless [ :chef ] [ :webui_enabled ] = false
4747set_unless [ :chef ] [ :webui_admin_password ] = secure_password
48+ set_unless [ :chef ] [ :validation_client_name ] = "chef-validator"
4849
4950case chef [ :init_style ]
5051when "runit"
Original file line number Diff line number Diff line change 77log_level :info
88log_location <%= @client_log %>
99ssl_verify_mode :verify_none
10+ <% case @node[:chef][:url_type] -%>
11+ <% when "http" -%>
1012chef_server_url "http://<%= @node[:chef][:server_fqdn] %> :<%= @node[:chef][:server_port] %> "
13+ <% when "https" -%>
14+ chef_server_url "https://<%= @node[:chef][:server_fqdn] %> "
15+ <% end -%>
1116
12- validation_client_name "chef-validator "
17+ validation_client_name "<%= @node[: chef][:validation_client_name] %> "
1318validation_key "/etc/chef/validation.pem"
1419client_key "/etc/chef/client.pem"
1520
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ openid_cstore_path "<%= @node[:chef][:path] %>/openid/cstore"
2020search_index_path "<%= @node[:chef][:path] %> /search_index"
2121role_path "<%= @node[:chef][:serve_path] %> /roles"
2222
23- validation_client_name "chef-validator "
23+ validation_client_name "<%= @node[: chef][:validation_client_name] %> "
2424validation_key "/etc/chef/validation.pem"
2525client_key "/etc/chef/client.pem"
2626web_ui_client_name "chef-webui"
You can’t perform that action at this time.
0 commit comments