]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
cephadm-adopt: fix "Update the placement of radosgw hosts" task
authorTeoman ONAY <tonay@ibm.com>
Fri, 5 Jul 2024 09:40:17 +0000 (11:40 +0200)
committerTeoman ONAY <tonay@ibm.com>
Tue, 16 Jul 2024 12:16:57 +0000 (14:16 +0200)
spec file template conditions were incorrect

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

infrastructure-playbooks/cephadm-adopt.yml

index 7fedf18fcc06c7a6909c386cbbecb8d9bc6c3f00..ee6dbdeb6d70d9953d1de8ce455c6c9b546b3cac 100644 (file)
             count_per_host: {{ radosgw_num_instances }}
             hosts:
               - {{ ansible_facts['nodename'] }}
-          {{ "networks: rgw_subnet" if rgw_subnet is defined }}
+          {% if rgw_subnet is defined %}
+            networks: "{{ rgw_subnet }}"
+          {% endif %}
           spec:
             rgw_frontend_port: {{ radosgw_frontend_port }}
-            {{ "ssl: true" if radosgw_frontend_ssl_certificate }}
+          {% if radosgw_frontend_ssl_certificate is defined %}
+            {{ "ssl: true" }}
+          {% endif %}
           extra_container_args:
             - -v
             - /etc/pki/ca-trust:/etc/pki/ca-trust:ro