]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
update: support --limit on monitor nodes
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 28 Oct 2021 14:17:24 +0000 (16:17 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 28 Oct 2021 23:41:13 +0000 (01:41 +0200)
commita9a7c35a74e65179a009e5d9c51854dd595258d4
tree8546d659f0901a9dd9af9b91a26c7a3dd831dc0c
parentb8db1166c51f9398f0e4478d1782c77710ff20c7
update: support --limit on monitor nodes

Change needed in order to support --limit on mon nodes.
Otherwise, a call to `hostvars[groups[mon_group_name][0]]['_current_monitor_address']`
throws an error:

```
"The error was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute '_current_monitor_address'"
```

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2014304#c28
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 82eee4303bce3e41b5043bcb03fa3143dcdfd30d)
infrastructure-playbooks/rolling_update.yml
roles/ceph-facts/tasks/set_monitor_address.yml
tox-subset_update.ini