-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ferm_input_group_list documentation #71
Comments
Hey @starkers, sorry for the long reply (holiday season). First of all, you can ignore This is actually a very common usage pattern in DebOps roles. The general idea is, Ansible allows you to configure things in inventory on three levels - The issue wiith this system is, that a variable with a given name will be "masked" by variables on lower level, so using just one variable for example to specify list of hosts that are allowed to connect to a host over SSH you cannot combine configuration from different levels. This is where the split to multiple variables comes in. For example, in
As you can see, this lets you define firewall rules on different inventory levels very easily, and they will be combined by Ansible during playbook run to create complete firewall configuration. Other roles use this pattern as well, for similar purpose - to let you define configuration for different host groups, or individual hosts, or all of them at once. |
I'm completely lost as to what the promisingly named ferm_input_group_list array does.
I am really hoping it is something along the lines of policies that can be adjusted to input from other inventory group(s)?
Anyway, I've attempted to understand the task, template but in the absence of any documentation or example vars I am totally confused.
I will be running experiments now on some dev boxes soon I hope.
Could someone either:
NB: @drybjed great collection of roles, I thought I knew ansible before I tried reading this.. clearly I have a lot to still learn.. anyway its quite a relief to see such well written stuff compared to the non-idempotent trash I normally see
The text was updated successfully, but these errors were encountered: