Skip to content

Commit 7425edd

Browse files
committed
config: followup on 8a5628b
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 cf4a430)
1 parent 0162fdc commit 7425edd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

roles/ceph-config/tasks/main.yml

-5
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,6 @@
105105
- num_osds | default(0) | int > 0
106106
- ((ansible_facts['memtotal_mb'] * 1048576 * safety_factor | float) / num_osds | float) > osd_memory_target
107107

108-
- name: set osd_memory_target
109-
command: "{{ ceph_cmd }} config set osd/host:{{ inventory_hostname }} osd_memory_target {{ _osd_memory_target | default(osd_memory_target) }}"
110-
changed_when: false
111-
delegate_to: "{{ groups[mon_group_name][0] }}"
112-
113108
- name: create ceph conf directory
114109
file:
115110
path: "/etc/ceph"

roles/ceph-osd/tasks/main.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,9 @@
112112
- not rolling_update | default(False) | bool
113113
- openstack_config | bool
114114
- inventory_hostname == groups[osd_group_name] | last
115-
tags: wait_all_osds_up
115+
tags: wait_all_osds_up
116+
117+
- name: set osd_memory_target
118+
command: "{{ ceph_cmd }} --cluster {{ cluster }} config set osd/host:{{ inventory_hostname }} osd_memory_target {{ _osd_memory_target | default(osd_memory_target) }}"
119+
changed_when: false
120+
delegate_to: "{{ groups[mon_group_name][0] }}"

0 commit comments

Comments
 (0)