]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Adopt: placement of alertmanager hosts fails v6.0.28.18
authorTeoman ONAY <tonay@ibm.com>
Mon, 3 Feb 2025 09:31:27 +0000 (10:31 +0100)
committerTeoman ONAY <tonay@ibm.com>
Mon, 3 Feb 2025 09:51:57 +0000 (10:51 +0100)
- Task fails as count is set as a string while a number
is expected
- typo service_name instead of service_type

Signed-off-by: Teoman ONAY <tonay@ibm.com>
infrastructure-playbooks/cephadm-adopt.yml

index 44f404e0123416286f873f86ac3228052a06afd3..90bf969b08bab6b974c4491247d79ac89e3e3a13 100644 (file)
               service_id: "{{ ansible_facts['hostname'] }}"
               placement:
                 label: "{{ monitoring_group_name }}"
+                count: {{ groups.get(monitoring_group_name, []) | length }}
               {% if grafana_server_addr is defined %}
               networks:
               - {{ grafana_server_addr }}
           ceph_orch_apply:
             fsid: "{{ fsid }}"
             spec: |
-              service_name: prometheus
+              service_type: prometheus
               service_id: "{{ ansible_facts['hostname'] }}"
               placement:
                 label: {{ monitoring_group_name }}