]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
common: support setting pg autoscaler to off
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 14 Apr 2022 12:48:06 +0000 (14:48 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 14 Apr 2022 13:47:47 +0000 (15:47 +0200)
commit0545c898480e9cea239f5b6d2ae3b221d0dffaec
tree7a01b4a0bffff14b6a664fa47c4f5a2a5ab32ccc
parent82120d398087733ca05a9cb3f938721bd8c5118a
common: support setting pg autoscaler to off

The current implementation doesn't allow to disable the pg autoscaler
on created pools. This allows only 'on' or 'warn'.

With this commit, this is now possible to disable it.

Valid values would be ['on', 'yes', 'true', 'off', 'no', 'false']

```
openstack_glance_pool:
  name: "images"
  pg_num: 128
  pgp_num: 128
  rule_name: "replicated_rule"
  type: 1
  application: "rbd"
  size: 3
  pg_autoscale_mode: off
```

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2062621
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-client/tasks/create_users_keys.yml
roles/ceph-mds/tasks/create_mds_filesystems.yml
roles/ceph-osd/tasks/openstack_config.yml