From c2407f4c525b20d83ba62f0ad7b69b1bf46f7d74 Mon Sep 17 00:00:00 2001 From: Teoman ONAY Date: Fri, 5 Jul 2024 11:40:17 +0200 Subject: [PATCH] cephadm-adopt: fix "Update the placement of radosgw hosts" task spec file template conditions were incorrect Signed-off-by: Teoman ONAY (cherry picked from commit e85060cb6713b05757f87f5bda3368416aa6e64e) --- infrastructure-playbooks/cephadm-adopt.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/infrastructure-playbooks/cephadm-adopt.yml b/infrastructure-playbooks/cephadm-adopt.yml index 7fedf18fc..ee6dbdeb6 100644 --- a/infrastructure-playbooks/cephadm-adopt.yml +++ b/infrastructure-playbooks/cephadm-adopt.yml @@ -942,10 +942,14 @@ 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