]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-rgw: Set pg_num on RGW pool if required
authorBenoît Knecht <bknecht@protonmail.ch>
Tue, 27 Jul 2021 07:31:35 +0000 (09:31 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 11 Aug 2021 11:53:44 +0000 (13:53 +0200)
commit66426e131649ef7eadc8414d33f80ac1003a090b
treec1d2648f953aa148c89826d28cba7304af5e3338
parent712a9c44033a9224cdeec5467a9d50ffb78e9d1b
ceph-rgw: Set pg_num on RGW pool if required

If the `pg_num` value specified in `rgw_create_pools` is different from the
actual value in the cluster, apply it with `ceph osd pool set`.

This corresponds to the behavior of the `ceph_pool` module used in Ceph Ansible
5.0 onward.

Also avoid setting the pool application if it's already done.

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
roles/ceph-rgw/tasks/rgw_create_pools.yml