playbooks: use group name variables consistently
In many places, playbooks allow host group names such as 'mons' to be overriden by defining a variable such as 'mon_group_name'. This is very useful when ceph-ansible is sharing the ansible inventory with other playbooks and other hosts which expect different group names. But this was unfinished, with the variables used in some places but hard-coded names used in others places, sometimes within the same playbook.
This commit uses the group name variables everywhere so they can be reliably used to overrride the host group names.
Signed-off-by: Stuart Grace [email protected]
I have a PR with the same goal. (But with unknown commits attached to it) Some group_names are also present in prometheus jinja file :
- https://github.com/ceph/ceph-ansible/blob/main/roles/ceph-prometheus/templates/alertmanager.yml.j2
- https://github.com/ceph/ceph-ansible/blob/main/roles/ceph-prometheus/templates/prometheus.yml.j2
I think an all_group_name that replace all generic group must be implemented when inventory used is larger than the simple cluster inventory (as in a cloud dynamic inventory).
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.
This pull request has been automatically closed due to inactivity. Please re-open if these changes are still required.