mirror of https://github.com/ceph/ceph-ansible.git
config: followup on 8a5628b51
Add missing `--cluster {{ cluster }}` on task
`set osd_memory_target` in the main.yml file of the
ceph-config role.
Also it moves the task after ceph configuration file is actually written.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit cf4a430d0b
)
pull/7262/head
parent
0162fdc30d
commit
7425edd7f6
|
@ -105,11 +105,6 @@
|
||||||
- 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
|
||||||
|
|
||||||
- name: set osd_memory_target
|
|
||||||
command: "{{ ceph_cmd }} config set osd/host:{{ inventory_hostname }} osd_memory_target {{ _osd_memory_target | default(osd_memory_target) }}"
|
|
||||||
changed_when: false
|
|
||||||
delegate_to: "{{ groups[mon_group_name][0] }}"
|
|
||||||
|
|
||||||
- name: create ceph conf directory
|
- name: create ceph conf directory
|
||||||
file:
|
file:
|
||||||
path: "/etc/ceph"
|
path: "/etc/ceph"
|
||||||
|
|
|
@ -113,3 +113,8 @@
|
||||||
- openstack_config | bool
|
- openstack_config | bool
|
||||||
- inventory_hostname == groups[osd_group_name] | last
|
- inventory_hostname == groups[osd_group_name] | last
|
||||||
tags: wait_all_osds_up
|
tags: wait_all_osds_up
|
||||||
|
|
||||||
|
- name: set osd_memory_target
|
||||||
|
command: "{{ ceph_cmd }} --cluster {{ cluster }} config set osd/host:{{ inventory_hostname }} osd_memory_target {{ _osd_memory_target | default(osd_memory_target) }}"
|
||||||
|
changed_when: false
|
||||||
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
||||||
|
|
Loading…
Reference in New Issue