diff --git a/docker/services/ceph-ansible/ceph-base.yaml b/docker/services/ceph-ansible/ceph-base.yaml index c1caabd36f..209dd0d623 100644 --- a/docker/services/ceph-ansible/ceph-base.yaml +++ b/docker/services/ceph-ansible/ceph-base.yaml @@ -256,23 +256,23 @@ resources: mgr: "allow *" mon: "profile rbd" osd: - str_replace: - template: 'profile rbd pool=CEPH_CLIENT_POOLS' - params: - CEPH_CLIENT_POOLS: - list_join: - - ', profile rbd pool=' - - list_concat_unique: - - - {get_param: CinderRbdPoolName} - - {get_param: CinderBackupRbdPoolName} - - {get_param: NovaRbdPoolName} - - {get_param: GlanceRbdPoolName} - - {get_param: GnocchiRbdPoolName} - # CinderRbdExtraPools is a list (do not indent further) - - {get_param: CinderRbdExtraPools} - - yaql: - data: {get_param: CephPools} - expression: $.data.select($.name) + list_join: + - ', ' + - repeat: + template: 'profile rbd pool=<%pool%>' + for_each: + <%pool%>: + list_concat_unique: + - - {get_param: CinderRbdPoolName} + - {get_param: CinderBackupRbdPoolName} + - {get_param: NovaRbdPoolName} + - {get_param: GlanceRbdPoolName} + - {get_param: GnocchiRbdPoolName} + # CinderRbdExtraPools is a list (do not indent further) + - {get_param: CinderRbdExtraPools} + - yaql: + data: {get_param: CephPools} + expression: $.data.select($.name) mode: "0600" - name: list_join: