]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
client: fix pgs num for client pool creation
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 26 Feb 2018 15:03:30 +0000 (16:03 +0100)
committerSébastien Han <seb@redhat.com>
Wed, 7 Mar 2018 10:18:04 +0000 (11:18 +0100)
commit9181c94adf640285c21cc08c2c222d4aa4a02194
tree49fe39a05d51693b8d99dabc6e19e0d401d29757
parent96c049be5b8e478548f68ec7312cd299fcda1bbc
client: fix pgs num for client pool creation

The `pools` dict defined in `roles/ceph-client/defaults/main.yml`
shouldn't have `{{ ceph_conf_overrides.global.osd_pool_default_pg_num
}}` as default value for `pgs` keys.

For instance, if you want some pools to be created but without explicitely
specifying the pgs for these pools (it means you want to use the
`osd_pool_default_pg_num`), you will be obliged to define
`{{ ceph_conf_overrides.global.osd_pool_default_pg_num }}` anyway while you
wanted to use the current default value already defined in the cluster which is
retrieved early in the playbook and stored in the
`{{ osd_pool_default_pg_num }}` fact.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
group_vars/clients.yml.sample
roles/ceph-client/defaults/main.yml
roles/ceph-client/tasks/create_users_keys.yml