Disable autoscale via command

As per [1] the ceph.conf option does not work properly and must be set this way.

[1] https://stackoverflow.com/questions/63853436/ceph-octopus-setting-autoscale-mode-from-ceph-conf-file
This commit is contained in:
Joshua Boniface 2023-09-02 01:59:47 -04:00
parent a10b3e8d4a
commit 8ebb8a8339
1 changed files with 5 additions and 0 deletions

View File

@ -111,6 +111,11 @@
run_once: yes run_once: yes
ignore_errors: yes ignore_errors: yes
- name: set pg_autoscale_mode disabled
command: ceph config set global osd_pool_default_pg_autoscale_mode off
run_once: yes
ignore_errors: yes
- name: create mgr auth keyring - name: create mgr auth keyring
command: ceph auth get-or-create mgr.{{ ansible_hostname }} mon 'allow profile mgr' osd 'allow *' mds 'allow *' --out-file /var/lib/ceph/mgr/ceph-{{ ansible_hostname }}/keyring command: ceph auth get-or-create mgr.{{ ansible_hostname }} mon 'allow profile mgr' osd 'allow *' mds 'allow *' --out-file /var/lib/ceph/mgr/ceph-{{ ansible_hostname }}/keyring
become_user: ceph become_user: ceph