Skip to content

Commit 1669288

Browse files
author
jtimberman
committed
use chef 0.10.0 environments
* Replaces all occurrances of node app_environment attribute with node.chef_environment in recipes. * Still need to update readmes for using environments instead of roles.
1 parent 53fb9b2 commit 1669288

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

recipes/app_lb.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
# limitations under the License.
1818
#
1919

20+
pool_members = search("node", "role:#{node['haproxy']['app_server_role']} AND chef_environment:#{node.chef_environment}") || []
21+
2022
package "haproxy" do
2123
action :install
2224
end
@@ -33,8 +35,6 @@
3335
action [:enable, :start]
3436
end
3537

36-
pool_members = search("node", "role:#{node['haproxy']['app_server_role']} AND app_environment:#{node['app_environment']}") || []
37-
3838
template "/etc/haproxy/haproxy.cfg" do
3939
source "haproxy-app_lb.cfg.erb"
4040
owner "root"

0 commit comments

Comments
 (0)