ceph-ansible/roles/ceph-rgw/tasks
Benoît Knecht e454b34b92 ceph-rgw: Make sure pool name templates are expanded
It is common to set templated pool names in `rgw_create_pools`, e.g.

```yaml
rgw_create_pools:
  "{{ rgw_zone }}.rgw.buckets.index":
    pg_num: 16
    size: 3
    type: replicated
```

This worked fine with Ansible 2.8, but broke in Ansible 2.9 due to a change in
the way `with_dict` works [1].

This commit replaces the use of `with_dict` with

```yaml
loop: "{{ rgw_create_pools | dict2items }}"
```

which works as intended and expands the template in the pool name.

[1]: https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.9.html#loops

Closes #5348

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
(cherry picked from commit d2b7670c7d)
2020-06-03 13:18:43 -04:00
..
multisite ceph-rgw: use match instead of equalto from jinja2 2020-05-06 15:45:44 -04:00
common.yml common: improve keyrings generation 2019-10-02 14:34:27 +02:00
main.yml rgw multisite: enable more than 1 realm per cluster 2020-03-04 14:39:23 -05:00
openstack-keystone.yml improve coding style 2019-05-06 15:09:06 +00:00
pre_requisite.yml ansible: use 'bool' filter on boolean conditionals 2019-06-07 16:05:51 +02:00
rgw_create_pools.yml ceph-rgw: Make sure pool name templates are expanded 2020-06-03 13:18:43 -04:00
start_docker_rgw.yml rgw: refact tasks directory layout 2019-10-01 18:50:51 +02:00
start_radosgw.yml improve coding style 2019-05-06 15:09:06 +00:00
systemd.yml rgw: refact tasks directory layout 2019-10-01 18:50:51 +02:00