cephadm-adopt: fix "Update the placement of radosgw hosts" task

spec file template conditions were incorrect

Signed-off-by: Teoman ONAY <tonay@ibm.com>
(cherry picked from commit e85060cb67)
pull/7581/head
Teoman ONAY 2024-07-05 11:40:17 +02:00
parent 4a981a2019
commit c2407f4c52
1 changed files with 6 additions and 2 deletions

View File

@ -942,10 +942,14 @@
count_per_host: {{ radosgw_num_instances }} count_per_host: {{ radosgw_num_instances }}
hosts: hosts:
- {{ ansible_facts['nodename'] }} - {{ ansible_facts['nodename'] }}
{{ "networks: rgw_subnet" if rgw_subnet is defined }} {% if rgw_subnet is defined %}
networks: "{{ rgw_subnet }}"
{% endif %}
spec: spec:
rgw_frontend_port: {{ radosgw_frontend_port }} 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: extra_container_args:
- -v - -v
- /etc/pki/ca-trust:/etc/pki/ca-trust:ro - /etc/pki/ca-trust:/etc/pki/ca-trust:ro