Permalink
Browse files

option names in chef-server config should be underscore, not dash, se…

…parated

* be a good citizen and replace dashes with underscores when rendering template
* fix "disable chef-server-webui" example in README
  • Loading branch information...
1 parent 32ec13a commit f5f9600c07533593de29a0d00eebdcf990194609 @schisamo schisamo committed Jan 27, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 README.md
  2. +1 −1 templates/default/chef-server.rb.erb
View
@@ -167,7 +167,7 @@ disable the webui with the following configuration:
echo '{
"chef-server": {
"configuration": {
- "chef-server-webui": {
+ "chef_server_webui": {
"enable": false
}
}
@@ -7,6 +7,6 @@ api_fqdn "<%= node['chef-server']['api_fqdn'] %>"
<% node['chef-server']['configuration'].each_pair do |component, tunables| -%>
<% tunables.each_pair do |name, value| -%>
<% value = %Q["#{value}"] if value.kind_of?(String) -%>
-<%= "#{component}['#{name}'] = #{value}" %>
+<%= "#{component.gsub("-","_")}['#{name}'] = #{value}" %>
<% end -%>
<% end -%>

0 comments on commit f5f9600

Please sign in to comment.