Browse files

Merge pull request #3 from rabidpraxis/chef-11-setter

Updated setters for Chef 11 compatibility
  • Loading branch information...
2 parents 6c742c3 + 4966c5b commit c62213db56e354ca510081e9cd1c8bc31c56304b @bbrowning bbrowning committed Feb 11, 2013
Showing with 6 additions and 6 deletions.
  1. +6 −6 torquebox/recipes/server.rb
View
12 torquebox/recipes/server.rb
@@ -41,18 +41,18 @@
# Allow bind_ip entries like ["cloud", "local_ipv4"]
if node[:torquebox][:bind_ip].is_a?(Array)
- node[:torquebox][:bind_ip_resolved] = node[:torquebox][:bind_ip].inject(node) do |hash, key|
+ node.set[:torquebox][:bind_ip_resolved] = node[:torquebox][:bind_ip].inject(node) do |hash, key|
hash[key]
end
else
- node[:torquebox][:bind_ip_resolved] = node[:torquebox][:bind_ip]
+ node.set[:torquebox][:bind_ip_resolved] = node[:torquebox][:bind_ip]
end
if clustered
- node[:torquebox][:peers] = discover_all(:torquebox, :server).map(&:private_ip)
- node[:torquebox][:peers].delete(node[:private_ip])
- node[:torquebox][:mod_cluster_proxies] = discover_all(:mod_cluster, :server).map(&:private_ip)
- node[:torquebox][:server_config] = "standalone-ha.xml"
+ node.set[:torquebox][:peers] = discover_all(:torquebox, :server).map(&:private_ip)
+ node.set[:torquebox][:peers].delete(node[:private_ip])
+ node.set[:torquebox][:mod_cluster_proxies] = discover_all(:mod_cluster, :server).map(&:private_ip)
+ node.set[:torquebox][:server_config] = "standalone-ha.xml"
end
template "#{current}/jboss/standalone/configuration/standalone-ha.xml" do

0 comments on commit c62213d

Please sign in to comment.