--- /dev/null
+---
+- hosts: all
+ 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:
+ - block:
+ - import_role:
+ name: ceph-defaults
+ tags: ['ceph_update_config']
+ - import_role:
+ name: ceph-facts
+ tags: ['ceph_update_config']
+ - import_role:
+ name: ceph-container-engine
+ - import_role:
+ name: ceph-node-exporter
+
+ 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') }}"
+
+- hosts: '{{ groups["grafana-server"][0] | default(groups["mgrs"][0]) | default(groups["mons"][0]) | default(omit) }}'
+ 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:
+ - block:
+ - import_role:
+ name: ceph-defaults
+ tags: ['ceph_update_config']
+ - import_role:
+ name: ceph-facts
+ tags: ['ceph_update_config']
+ - import_role:
+ name: ceph-container-engine
+ - import_role:
+ name: ceph-prometheus
+ - import_role:
+ name: ceph-grafana
+
+ 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') }}"
+
+- hosts: '{{ groups["mgrs"][0] | default(groups["mons"][0]) | default(omit) }}'
+ 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:
+ - block:
+ - import_role:
+ name: ceph-defaults
+ tags: ['ceph_update_config']
+ - import_role:
+ name: ceph-facts
+ tags: ['ceph_update_config']
+ - import_role:
+ name: ceph-dashboard
+
+ 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') }}"
name: ceph-container-engine
- import_role:
name: ceph-container-common
- - import_role:
- name: ceph-node-exporter
- when: dashboard_enabled | bool
- import_role:
name: ceph-config
tags: ['ceph_update_config']
name: ceph-container-engine
- import_role:
name: ceph-container-common
- - import_role:
- name: ceph-node-exporter
- when: dashboard_enabled | bool
- import_role:
name: ceph-config
tags: ['ceph_update_config']
name: ceph-container-engine
- import_role:
name: ceph-container-common
- - import_role:
- name: ceph-node-exporter
- when: dashboard_enabled | bool
- import_role:
name: ceph-config
tags: ['ceph_update_config']
name: ceph-container-engine
- import_role:
name: ceph-container-common
- - import_role:
- name: ceph-node-exporter
- when: dashboard_enabled | bool
- import_role:
name: ceph-config
tags: ['ceph_update_config']
name: ceph-container-engine
- import_role:
name: ceph-container-common
- - import_role:
- name: ceph-node-exporter
- when: dashboard_enabled | bool
- import_role:
name: ceph-config
tags: ['ceph_update_config']
name: ceph-container-engine
- import_role:
name: ceph-container-common
- - import_role:
- name: ceph-node-exporter
- when: dashboard_enabled | bool
- import_role:
name: ceph-config
tags: ['ceph_update_config']
name: ceph-container-engine
- import_role:
name: ceph-container-common
- - import_role:
- name: ceph-node-exporter
- when: dashboard_enabled | bool
- import_role:
name: ceph-config
tags: ['ceph_update_config']
name: ceph-handler
- import_role:
name: ceph-container-engine
- when: inventory_hostname == groups.get('clients', ['']) | first or dashboard_enabled
+ when: inventory_hostname == groups.get('clients', ['']) | first
- import_role:
name: ceph-container-common
when: inventory_hostname == groups.get('clients', ['']) | first
- - import_role:
- name: ceph-node-exporter
- when: dashboard_enabled | bool
- import_role:
name: ceph-config
tags: ['ceph_update_config']
name: ceph-container-engine
- import_role:
name: ceph-container-common
- - import_role:
- name: ceph-node-exporter
- when: dashboard_enabled | bool
- import_role:
name: ceph-config
tags: ['ceph_update_config']
run_once: true
when: not ceph_status.failed
-- hosts: '{{ groups["grafana-server"][0] | default(groups["mgrs"][0]) | default(groups["mons"][0]) | default(omit) }}'
- 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') }}"
- when: dashboard_enabled | bool
-
- tasks:
- - block:
- - import_role:
- name: ceph-defaults
- tags: ['ceph_update_config']
- - import_role:
- name: ceph-facts
- tags: ['ceph_update_config']
- - import_role:
- name: ceph-handler
- - import_role:
- name: ceph-container-engine
- - import_role:
- name: ceph-container-common
- - import_role:
- name: ceph-node-exporter
- - import_role:
- name: ceph-config
- tags: ['ceph_update_config']
- - import_role:
- name: ceph-prometheus
- - import_role:
- name: ceph-grafana
- when: dashboard_enabled | bool
-
- 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') }}"
- when: dashboard_enabled | bool
-
-- hosts: '{{ groups["mgrs"][0] | default(groups["mons"][0]) | default(omit) }}'
- 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') }}"
- when: dashboard_enabled | bool
-
- tasks:
- - block:
- - import_role:
- name: ceph-defaults
- tags: ['ceph_update_config']
- - import_role:
- name: ceph-dashboard
- when: dashboard_enabled | bool
-
- 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') }}"
- when: dashboard_enabled | bool
+- import_playbook: infrastructure-playbooks/dashboard.yml
+ when:
+ - dashboard_enabled | bool
+ - groups.get(grafana_server_group_name, []) | length > 0
run_once: true
when: not ceph_status.failed
-- hosts: all
- 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') }}"
- when: dashboard_enabled | bool
-
- tasks:
- - block:
- - import_role:
- name: ceph-defaults
- - import_role:
- name: ceph-facts
- - import_role:
- name: ceph-handler
- - import_role:
- name: ceph-container-engine
- - import_role:
- name: ceph-node-exporter
- when: dashboard_enabled | bool
-
- 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') }}"
- when: dashboard_enabled | bool
-
-- hosts: '{{ groups["grafana-server"][0] | default(groups["mgrs"][0]) | default(groups["mons"][0]) | default(omit) }}'
- 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') }}"
- when: dashboard_enabled | bool
-
- tasks:
- - block:
- - import_role:
- name: ceph-defaults
- tags: ['ceph_update_config']
- - import_role:
- name: ceph-facts
- tags: ['ceph_update_config']
- - import_role:
- name: ceph-handler
- - import_role:
- name: ceph-common
- - import_role:
- name: ceph-config
- tags: ['ceph_update_config']
- - import_role:
- name: ceph-prometheus
- - import_role:
- name: ceph-grafana
- when: dashboard_enabled | bool
-
- 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') }}"
- when: dashboard_enabled | bool
-
-- hosts: '{{ groups["mgrs"][0] | default(groups["mons"][0]) | default(omit) }}'
- 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') }}"
- when: dashboard_enabled | bool
-
- tasks:
- - block:
- - import_role:
- name: ceph-defaults
- tags: ['ceph_update_config']
- - import_role:
- name: ceph-dashboard
- when: dashboard_enabled | bool
-
- 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') }}"
- when: dashboard_enabled | bool
+- import_playbook: infrastructure-playbooks/dashboard.yml
+ when:
+ - dashboard_enabled | bool
+ - groups.get(grafana_server_group_name, []) | length > 0