]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
refact osd pool size customization
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 21 Nov 2018 10:00:11 +0000 (11:00 +0100)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Thu, 29 Nov 2018 01:49:05 +0000 (01:49 +0000)
commitf0195e97ed187cb38c91222c8f70d6e1fbffc171
treeea42dfc00d07dffa494fb7239ff12d67f2f9009c
parent68b2ad11ee1055d058d70069ee6b398690af6a1f
refact osd pool size customization

Add real default value for osd pool size customization.
Ceph itself has an `osd_pool_default_size` default value to `3`.

If users don't specify a pool size in various pools definition within
ceph-ansible, we should default to `3`.

By the way, this kind of condition isn't really clear:
```
when:
  - rbd_pool_size | default ("")
```

we should try to get the customized value then default to what is in
`osd_pool_default_size` (which has its default value pointing to
`ceph_osd_pool_default_size` (`3`) as well) and compare it to
`ceph_osd_pool_default_size`.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 7774069d45477df9f37c98bc414b3bf38cf41feb)
group_vars/iscsigws.yml.sample
roles/ceph-client/tasks/create_users_keys.yml
roles/ceph-defaults/tasks/facts.yml
roles/ceph-iscsi-gw/defaults/main.yml
roles/ceph-iscsi-gw/tasks/common.yml
roles/ceph-mds/tasks/create_mds_filesystems.yml
roles/ceph-osd/tasks/openstack_config.yml
roles/ceph-rgw/tasks/main.yml