I'm trying to understand how to deploy into a system that has about 25 servers. One will be the master (icinga2_role = master), the rest will be clients (icinga2_role = agent).
When I run master, I set the host of the playbook to be the monitoring server. It is the only one I am referencing from the inventory list. There is only one and Icinga as master is installed.
Now I want to run with icinga2_role = agent.
In my playbook I set to hosts: all, but I don't think I should include the master server in the inventory.
What is best practice scenario for running playbook for a a master server and then for the rest of the agent servers.
I'm trying to understand how to deploy into a system that has about 25 servers. One will be the master (
icinga2_role = master
), the rest will be clients (icinga2_role = agent
).When I run master, I set the host of the playbook to be the monitoring server. It is the only one I am referencing from the inventory list. There is only one and Icinga as master is installed.
Now I want to run with
icinga2_role = agent
.In my playbook I set to
hosts: all
, but I don't think I should include the master server in the inventory.What is best practice scenario for running playbook for a a master server and then for the rest of the agent servers.
Thanks for any tips, Chris.