Skip to content

Commit

Permalink
Fixed incorrect variable referencing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Neath committed Mar 12, 2015
1 parent a206175 commit c1f7a4f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@
# only run on app servers
#

if node[:instance_role][/^app/]
if node[:instance_role][/^app/]

#
# install haproxy 1.5.4 (by default) if not already present
#

execute "unmask haproxy #{haproxy_version}" do
command "echo '=net-proxy/haproxy-#{haproxy_version}' >> /etc/portage/package.keywords/local"
not_if "grep '=net-proxy/haproxy-#{haproxy_version}' /etc/portage/package.keywords/local"
execute "unmask haproxy #{node[:haproxy_version]}" do
command "echo '=net-proxy/haproxy-#{node[:haproxy_version]}' >> /etc/portage/package.keywords/local"
not_if "grep '=net-proxy/haproxy-#{node[:haproxy_version]}' /etc/portage/package.keywords/local"
end

package "net-proxy/haproxy" do
action :install
version haproxy_version
version node[:haproxy_version]
end

#
Expand Down

0 comments on commit c1f7a4f

Please sign in to comment.