mirror of https://github.com/ceph/ceph-ansible.git
config: do not always set _osd_memory_target
When 'osd_memory_target' is overridden in ceph_conf_overrides. The task that sets the fact `osd_memory_target` in the ceph-config role should be skipped. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2056675#c11 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>shrink-mon-update-config
parent
82e0ae7e75
commit
e2076e439b
|
@ -102,6 +102,8 @@
|
||||||
set_fact:
|
set_fact:
|
||||||
_osd_memory_target: "{{ ((ansible_facts['memtotal_mb'] * 1048576 * safety_factor | float) / num_osds | float) | int }}"
|
_osd_memory_target: "{{ ((ansible_facts['memtotal_mb'] * 1048576 * safety_factor | float) / num_osds | float) | int }}"
|
||||||
when:
|
when:
|
||||||
|
- not ceph_conf_overrides.get('osd', {}).get('osd_memory_target')
|
||||||
|
- not ceph_conf_overrides.get('osd', {}).get('osd memory target')
|
||||||
- num_osds | default(0) | int > 0
|
- num_osds | default(0) | int > 0
|
||||||
- ((ansible_facts['memtotal_mb'] * 1048576 * safety_factor | float) / num_osds | float) > osd_memory_target
|
- ((ansible_facts['memtotal_mb'] * 1048576 * safety_factor | float) / num_osds | float) > osd_memory_target
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue