]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
cephadm-adopt: fix ssl condition in rgw placement task mergify/bp/stable-8.0/pr-7654 7655/head
authorTeoman ONAY <tonay@ibm.com>
Fri, 24 Jan 2025 12:56:41 +0000 (13:56 +0100)
committerTeoman ONAY <tonay@ibm.com>
Wed, 19 Mar 2025 22:11:06 +0000 (23:11 +0100)
rgw daemons fail to start as they were looking for
ssl certificates while none were available.

Signed-off-by: Teoman ONAY <tonay@ibm.com>
(cherry picked from commit bf76bded4c3760a6610284cc477f642c8635f06d)

infrastructure-playbooks/cephadm-adopt.yml

index ebdd310e2288dfd147f549015b0eebd6a0a12183..39830f126428ff4935a058fae825166652e3fc95 100644 (file)
           {% endif %}
           spec:
             rgw_frontend_port: {{ radosgw_frontend_port }}
-          {% if radosgw_frontend_ssl_certificate is defined %}
+          {% if radosgw_frontend_ssl_certificate | length > 0 %}
             {{ "ssl: true" }}
           {% endif %}
           extra_container_args:
               placement:
                 label: "{{ monitoring_group_name }}"
                 count: "{{ groups.get(monitoring_group_name, []) | length }}"
-              {% if grafana_server_addr is defined %}
-              networks:
-              - {{ grafana_server_addr }}
+              {% if grafana_network is defined %}
+              networks: {{ grafana_network.split(',') | list if ',' in grafana_network else [grafana_network] }}
               {% endif %}
           delegate_to: "{{ groups[mon_group_name][0] }}"
           environment:
               placement:
                 label: {{ monitoring_group_name }}
                 count: {{ groups.get(monitoring_group_name, []) | length }}
+              {% if grafana_network is defined %}
+              networks: {{ grafana_network.split(',') | list if ',' in grafana_network else [grafana_network] }}
+              {% endif %}
               {% if prometheus_port is defined and prometheus_port != 9095 %}
               spec:
                 port: {{ prometheus_port }}