Skip to content

Instantly share code, notes, and snippets.

@mpdehaan
Created December 10, 2018 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpdehaan/ee37df93e988072b0fa53dbff5fb98ed to your computer and use it in GitHub Desktop.
Save mpdehaan/ee37df93e988072b0fa53dbff5fb98ed to your computer and use it in GitHub Desktop.
Possible fanout syntax
[groups.bastions.hosts]
"bastion.example.com" = ""
[groups.rack1.hosts]
"rack1-top.example.com" = "opsmop_via=bastion.example.com"
"rack1-101.example.com" = ""
"rack1-102.example.com" = ""
[groups.rack2.hosts]
"rack2-top.example.com" = "opsmop_via=bastion.example.com"
"rack2-201.example.com" = ""
"rack2-202.example.com" = ""
[groups.rack1.vars]
opsmop_via = "rack1-top.example.com"
[groups.rack2.vars]
opsmop_via = "rack2-top.example.com"
[groups.fooapp.hosts]
"rack1-101.example.com" = ""
"rack2-202.example.com" = ""
[groups.barapp.hosts]
"rack2-102.example.com" = ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment