2019-06-28 22:39:38 +08:00
|
|
|
---
|
|
|
|
- hosts: all
|
2019-10-10 01:34:50 +08:00
|
|
|
gather_facts: false
|
2019-06-28 22:39:38 +08:00
|
|
|
become: true
|
|
|
|
pre_tasks:
|
|
|
|
- name: set ceph node exporter install 'In Progress'
|
|
|
|
run_once: true
|
|
|
|
set_stats:
|
|
|
|
data:
|
|
|
|
installer_phase_ceph_node_exporter:
|
|
|
|
status: "In Progress"
|
|
|
|
start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
|
|
|
|
|
|
|
tasks:
|
2019-10-03 02:58:42 +08:00
|
|
|
- import_role:
|
|
|
|
name: ceph-defaults
|
|
|
|
tags: ['ceph_update_config']
|
|
|
|
- import_role:
|
|
|
|
name: ceph-facts
|
|
|
|
tags: ['ceph_update_config']
|
|
|
|
- import_role:
|
|
|
|
name: ceph-container-engine
|
2020-09-10 23:27:37 +08:00
|
|
|
when: (group_names != ['clients']) or (inventory_hostname == groups.get('clients', [''])|first)
|
2019-10-23 01:58:50 +08:00
|
|
|
- import_role:
|
|
|
|
name: ceph-container-common
|
|
|
|
tasks_from: registry
|
|
|
|
when:
|
2020-09-10 23:27:37 +08:00
|
|
|
- (group_names != ['clients']) or (inventory_hostname == groups.get('clients', [''])|first)
|
2019-10-23 01:58:50 +08:00
|
|
|
- not containerized_deployment | bool
|
|
|
|
- ceph_docker_registry_auth | bool
|
2019-10-03 02:58:42 +08:00
|
|
|
- import_role:
|
|
|
|
name: ceph-node-exporter
|
2019-06-28 22:39:38 +08:00
|
|
|
|
|
|
|
post_tasks:
|
|
|
|
- name: set ceph node exporter install 'Complete'
|
|
|
|
run_once: true
|
|
|
|
set_stats:
|
|
|
|
data:
|
|
|
|
installer_phase_ceph_node_exporter:
|
|
|
|
status: "Complete"
|
|
|
|
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
|
|
|
|
2019-07-26 01:08:22 +08:00
|
|
|
- hosts: "{{ grafana_server_group_name }}"
|
2019-10-10 01:34:50 +08:00
|
|
|
gather_facts: false
|
2019-06-28 22:39:38 +08:00
|
|
|
become: true
|
|
|
|
pre_tasks:
|
|
|
|
- name: set ceph grafana install 'In Progress'
|
|
|
|
run_once: true
|
|
|
|
set_stats:
|
|
|
|
data:
|
|
|
|
installer_phase_ceph_grafana:
|
|
|
|
status: "In Progress"
|
|
|
|
start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
|
|
|
|
|
|
|
tasks:
|
2019-10-03 02:58:42 +08:00
|
|
|
- import_role:
|
|
|
|
name: ceph-defaults
|
|
|
|
tags: ['ceph_update_config']
|
|
|
|
- import_role:
|
|
|
|
name: ceph-facts
|
|
|
|
tags: ['ceph_update_config']
|
2020-01-13 23:24:52 +08:00
|
|
|
- import_role:
|
|
|
|
name: ceph-facts
|
|
|
|
tasks_from: grafana
|
|
|
|
tags: ['ceph_update_config']
|
2019-10-03 02:58:42 +08:00
|
|
|
- import_role:
|
|
|
|
name: ceph-prometheus
|
|
|
|
- import_role:
|
|
|
|
name: ceph-grafana
|
2019-06-28 22:39:38 +08:00
|
|
|
|
|
|
|
post_tasks:
|
|
|
|
- name: set ceph grafana install 'Complete'
|
|
|
|
run_once: true
|
|
|
|
set_stats:
|
|
|
|
data:
|
|
|
|
installer_phase_ceph_grafana:
|
|
|
|
status: "Complete"
|
|
|
|
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
|
|
|
|
2019-10-09 20:46:43 +08:00
|
|
|
# using groups[] here otherwise it can't fallback to the mon if there's no mgr group.
|
|
|
|
# adding an additional | default(omit) in case where no monitors are present (external ceph cluster)
|
|
|
|
- hosts: "{{ groups[mgr_group_name] | default(groups[mon_group_name]) | default(omit) }}"
|
2019-10-10 01:34:50 +08:00
|
|
|
gather_facts: false
|
2019-06-28 22:39:38 +08:00
|
|
|
become: true
|
|
|
|
pre_tasks:
|
|
|
|
- name: set ceph dashboard install 'In Progress'
|
|
|
|
run_once: true
|
|
|
|
set_stats:
|
|
|
|
data:
|
|
|
|
installer_phase_ceph_dashboard:
|
|
|
|
status: "In Progress"
|
|
|
|
start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
|
|
|
|
|
|
|
tasks:
|
2019-10-03 02:58:42 +08:00
|
|
|
- import_role:
|
|
|
|
name: ceph-defaults
|
|
|
|
tags: ['ceph_update_config']
|
|
|
|
- import_role:
|
|
|
|
name: ceph-facts
|
|
|
|
tags: ['ceph_update_config']
|
2020-01-13 23:24:52 +08:00
|
|
|
- import_role:
|
|
|
|
name: ceph-facts
|
|
|
|
tasks_from: grafana
|
|
|
|
tags: ['ceph_update_config']
|
2019-10-03 02:58:42 +08:00
|
|
|
- import_role:
|
|
|
|
name: ceph-dashboard
|
2019-06-28 22:39:38 +08:00
|
|
|
|
|
|
|
post_tasks:
|
|
|
|
- name: set ceph dashboard install 'Complete'
|
|
|
|
run_once: true
|
|
|
|
set_stats:
|
|
|
|
data:
|
|
|
|
installer_phase_ceph_dashboard:
|
|
|
|
status: "Complete"
|
|
|
|
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|