Skip to content

Commit 912de5a

Browse files
committed
Handle adoption when radosgw_address_block is comma delimited list
In cephadm-adopt.yml TASK "Update the placement of radosgw hosts" passes module ceph_orch_apply embedded YAML via a block scalar. This YAML creates a Ceph spec of service_type RGW. The networks key of this spec supports either a list or a string. Without this patch, the networks key of the spec will only contain a string. With this patch a string is still set for the networks key, but if Ansible var radosgw_address_block contains commas, then var radosgw_address_block is split by those commas into a list and the networks key of the spec will be set to a list. Closes: https://issues.redhat.com/browse/RHCEPH-10418 Signed-off-by: John Fulton <[email protected]>
1 parent bf76bde commit 912de5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infrastructure-playbooks/cephadm-adopt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@
950950
hosts:
951951
- {{ ansible_facts['nodename'] }}
952952
{% if rgw_subnet is defined %}
953-
networks: "{{ radosgw_address_block }}"
953+
networks: {{ radosgw_address_block.split(',') | list if ',' in radosgw_address_block else radosgw_address_block | string }}
954954
{% endif %}
955955
spec:
956956
rgw_frontend_port: {{ radosgw_frontend_port }}

0 commit comments

Comments
 (0)