mirror of https://github.com/ceph/ceph-ansible.git
ceph-mgr: move mgr module list to common
Populating the ceph_mgr_modules list in the mgr_modules doesn't make sense
since that file is only executed if the list isn't empty or we're using the
dashboard.
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit cd06e7c046
)
pull/6749/head
parent
364186a86e
commit
8d58c50f45
|
@ -83,3 +83,12 @@
|
||||||
group: "{{ ceph_uid if containerized_deployment | bool else 'ceph' }}"
|
group: "{{ ceph_uid if containerized_deployment | bool else 'ceph' }}"
|
||||||
mode: "{{ ceph_keyring_permissions }}"
|
mode: "{{ ceph_keyring_permissions }}"
|
||||||
when: cephx | bool
|
when: cephx | bool
|
||||||
|
|
||||||
|
- name: append dashboard modules to ceph_mgr_modules
|
||||||
|
set_fact:
|
||||||
|
ceph_mgr_modules: "{{ ceph_mgr_modules | union(['dashboard', 'prometheus']) }}"
|
||||||
|
when: dashboard_enabled | bool
|
||||||
|
|
||||||
|
- name: append pg_autoscaler module to ceph_mgr_modules
|
||||||
|
set_fact:
|
||||||
|
ceph_mgr_modules: "{{ ceph_mgr_modules | union(['pg_autoscaler']) }}"
|
||||||
|
|
|
@ -21,6 +21,6 @@
|
||||||
- name: include mgr_modules.yml
|
- name: include mgr_modules.yml
|
||||||
include_tasks: mgr_modules.yml
|
include_tasks: mgr_modules.yml
|
||||||
when:
|
when:
|
||||||
- ceph_mgr_modules | length > 0 or dashboard_enabled
|
- ceph_mgr_modules | length > 0
|
||||||
- ((groups[mgr_group_name] | default([]) | length == 0 and inventory_hostname == groups[mon_group_name] | last) or
|
- ((groups[mgr_group_name] | default([]) | length == 0 and inventory_hostname == groups[mon_group_name] | last) or
|
||||||
(groups[mgr_group_name] | default([]) | length > 0 and inventory_hostname == groups[mgr_group_name] | last))
|
(groups[mgr_group_name] | default([]) | length > 0 and inventory_hostname == groups[mgr_group_name] | last))
|
||||||
|
|
|
@ -1,13 +1,4 @@
|
||||||
---
|
---
|
||||||
- name: append dashboard modules to ceph_mgr_modules
|
|
||||||
set_fact:
|
|
||||||
ceph_mgr_modules: "{{ ceph_mgr_modules | union(['dashboard', 'prometheus']) }}"
|
|
||||||
when: dashboard_enabled | bool
|
|
||||||
|
|
||||||
- name: append pg_autoscaler module to ceph_mgr_modules
|
|
||||||
set_fact:
|
|
||||||
ceph_mgr_modules: "{{ ceph_mgr_modules | union(['pg_autoscaler']) }}"
|
|
||||||
|
|
||||||
- name: wait for all mgr to be up
|
- name: wait for all mgr to be up
|
||||||
command: "{{ hostvars[groups[mon_group_name][0]]['container_exec_cmd'] | default('') }} ceph --cluster {{ cluster }} mgr dump -f json"
|
command: "{{ hostvars[groups[mon_group_name][0]]['container_exec_cmd'] | default('') }} ceph --cluster {{ cluster }} mgr dump -f json"
|
||||||
register: mgr_dump
|
register: mgr_dump
|
||||||
|
|
Loading…
Reference in New Issue