Skip to content

Instantly share code, notes, and snippets.

@heliocentric
Last active April 21, 2017 18:25
Show Gist options
  • Save heliocentric/3484a6b109b2e1056e62412f0ae45759 to your computer and use it in GitHub Desktop.
Save heliocentric/3484a6b109b2e1056e62412f0ae45759 to your computer and use it in GitHub Desktop.
$haproxy_servers = {
"test" => {
"host" => "test1",
"stuff" => "test2",
},
"jump" => {
"host" => "jump1",
"stuff" => "jump2",
}
}
if $haproxy_servers {
$haproxy_servers.each |$key, $value| {
$host = $value["host"]
$stuff = $value["stuff"]
$stuff_ssl = $value["stuff_ssl"]
notify { "$host": }
notify { "$stuff": }
}
}
resources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment