Created
July 30, 2012 01:42
-
-
Save lastobelus/3203222 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
knife node show 4_box_lamp-loadbalancer-0 -ahaproxy #run on dev machine | |
haproxy: | |
app_server_role: app_server | |
balance_algorithm: roundrobin | |
enable_admin: true | |
enable_ssl: false | |
incoming_port: 80 | |
member_max_connections: 100 | |
member_port: 8080 | |
ssl_incoming_port: 443 | |
ssl_member_port: 8443 | |
x_forwarded_for: false | |
# in shef on 4_box_lamp-loadbalancer-0 | |
chef > node['haproxy'] | |
=> #<Chef::Node::Attribute @normal={...}, @current_normal=nil, @default={...}, @current_default={"incoming_port"=>"80", "member_port"=>"8080", "enable_admin"=>true, "app_server_role"=>"webserver", "balance_algorithm"=>"roundrobin", "member_max_connections"=>"100", "x_forwarded_for"=>false, "enable_ssl"=>false, "ssl_incoming_port"=>"443", "ssl_member_port"=>"8443"}, @override={...}, @current_override=nil, @automatic={...}, @current_automatic=nil, @current_nesting_level=["haproxy"], @auto_vivifiy_on_read=false, @set_unless_value_present=false, @set_type=nil, @has_been_read=false> | |
# result of search in shef | |
search(:node, "name:4_box_lamp-loadbalancer-0").first['haproxy'] | |
=> #<Chef::Node::Attribute @normal={...}, @current_normal=nil, @default={...}, @current_default={"incoming_port"=>"80", "member_port"=>"8080", "enable_admin"=>true, "app_server_role"=>"webserver", "balance_algorithm"=>"roundrobin", "member_max_connections"=>"100", "x_forwarded_for"=>false, "enable_ssl"=>false, "ssl_incoming_port"=>"443", "ssl_member_port"=>"8443"}, @override={...}, @current_override={"app_server_role"=>"app_server"}, @automatic={...}, @current_automatic=nil, @current_nesting_level=["haproxy"], @auto_vivifiy_on_read=false, @set_unless_value_present=false, @set_type=nil, @has_been_read=false> | |
chef > node['name'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment