]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
Handle adoption when radosgw_address_block is comma delimited list
authorJohn Fulton <fulton@redhat.com>
Thu, 16 Jan 2025 20:50:50 +0000 (15:50 -0500)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 6 Feb 2025 15:06:19 +0000 (15:06 +0000)
commit0fab225e9857ed7aa233409b2afad784d62d7c94
tree47391b1110d5b5a334a631988de64b7e5f785aea
parent5cce92a151dca3a4512ae27c1a51840f3c27e9bc
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 <fulton@redhat.com>
(cherry picked from commit b0707ae5d884666a7eedcbbdb29c7d57d514456a)
infrastructure-playbooks/cephadm-adopt.yml