]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rolling_update: exclude clients from node-exporter
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 3 Feb 2021 18:07:24 +0000 (13:07 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 9 Feb 2021 13:41:13 +0000 (14:41 +0100)
Since b105549 we don't install node-exporter on client nodes so we should
also exclude the client node from the node-exporter upgrade.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
infrastructure-playbooks/rolling_update.yml

index 0d92ee86f992e05e6d18dc669f098fd2a29f581d..e02219fa11e693e50064a42e78478b231d1562e4 100644 (file)
         - groups.get(mon_group_name, []) | length > 0
 
 - name: upgrade node-exporter
-  hosts: all
+  hosts:
+    - "{{ mon_group_name|default('mons') }}"
+    - "{{ osd_group_name|default('osds') }}"
+    - "{{ mds_group_name|default('mdss') }}"
+    - "{{ rgw_group_name|default('rgws') }}"
+    - "{{ mgr_group_name|default('mgrs') }}"
+    - "{{ rbdmirror_group_name|default('rbdmirrors') }}"
+    - "{{ nfs_group_name|default('nfss') }}"
+    - "{{ iscsi_gw_group_name|default('iscsigws') }}"
+    - "{{ monitoring_group_name|default('monitoring') }}"
   gather_facts: false
   become: true
   tasks: