Permalink
Browse files

corrected the variables in template instead of the attributes

  • Loading branch information...
1 parent dae70d2 commit 02a06ab91c8f7783709bab1e198f6683b1855533 @jtimberman committed Feb 27, 2012
Showing with 3 additions and 4 deletions.
  1. +1 −2 attributes/server_proxy.rb
  2. +2 −2 recipes/apache-proxy.rb
View
3 attributes/server_proxy.rb
@@ -32,7 +32,7 @@
'chef-server-proxy',
"chef.#{node['domain']}"
]
-default['chef_server']['proxy']['api_server_aliases'] = node['chef_server']['proxy']['api_aliases']
+
default['chef_server']['proxy']['webui_server_name'] = "localhost"
default['chef_server']['proxy']['webui_port'] = 444
default['chef_server']['proxy']['webui_aliases'] = [
@@ -41,4 +41,3 @@
'chef-server-proxy',
"chef.#{node['domain']}"
]
-default['chef_server']['proxy']['webui_server_aliases'] = node['chef_server']['proxy']['webui_aliases']
View
4 recipes/apache-proxy.rb
@@ -58,10 +58,10 @@
web_app "chef-server-proxy" do
template "chef_server.conf.erb"
api_server_name node['chef_server']['proxy']['api_server_name']
- api_aliases node['chef_server']['proxy']['api_aliases']
+ api_server_aliases node['chef_server']['proxy']['api_aliases']
api_port node['chef_server']['proxy']['api_port']
webui_server_name node['chef_server']['proxy']['webui_server_name']
- webui_aliases node['chef_server']['proxy']['webui_aliases']
+ webui_server_aliases node['chef_server']['proxy']['webui_aliases']
webui_port node['chef_server']['proxy']['webui_port']
log_dir node['apache']['log_dir']
end

0 comments on commit 02a06ab

Please sign in to comment.