]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-rgw: Fix custom pool size setting
authorBenoît Knecht <bknecht@protonmail.ch>
Mon, 30 Dec 2019 09:53:20 +0000 (10:53 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Thu, 9 Jan 2020 02:28:03 +0000 (21:28 -0500)
commit0cb12359620caf8c71d10fa33ac2c5703d4afa8b
tree49bb21558326b9286556796bc2b111625ec3e29b
parente001ded6f6925f6df7f35f1304fbfcd4048d8343
ceph-rgw: Fix custom pool size setting

RadosGW pools can be created by setting

```yaml
rgw_create_pools:
  .rgw.root:
    pg_num: 512
    size: 2
```

for instance. However, doing so would create pools of size
`osd_pool_default_size` regardless of the `size` value. This was due to
the fact that the Ansible task used

```
{{ item.size | default(osd_pool_default_size) }}
```

as the pool size value, but `item.size` is always undefined; the
correct variable is `item.value.size`.

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
(cherry picked from commit 3c31b19ab39f297635c84edb9e8a5de6c2da7707)
roles/ceph-rgw/tasks/main.yml