]> git-server-git.apps.pok.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>
Wed, 8 Jan 2020 21:16:38 +0000 (16:16 -0500)
commit3c31b19ab39f297635c84edb9e8a5de6c2da7707
tree22f8516753b12765209786570865a2ac1e010235
parent70eba66182aebfcb7056521eb9da7c6c13f574da
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>
roles/ceph-rgw/tasks/main.yml