Created
September 7, 2017 12:36
-
-
Save tomrgio/063f613138d408d8f5e5b42d8b2b947d to your computer and use it in GitHub Desktop.
This file contains 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
all_web_nodes = search('node', 'role:web') | |
members = [] | |
all_web_nodes.each do |web_node| | |
member = { | |
'address' => web_node['cloud']['public_hostname'], | |
'weight' => 100, | |
'port' => 80, | |
'ssl_port' => 80 | |
} | |
members.push(member) | |
end | |
node.default['iis-lb']['members'] = members | |
include_recipe 'iis-lb::default' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment