-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathplaybook.yml
More file actions
109 lines (101 loc) · 1.97 KB
/
Copy pathplaybook.yml
File metadata and controls
109 lines (101 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
- hosts: localhost
connection: local
gather_facts: false
vars:
ceph_groups:
- ceph-grafana
# These are roles used by ceph-ansible
- mons
- agents
- osds
- mdss
- rgws
- nfss
- restapis
- rbdmirrors
- clients
- mgrs
- iscsis
# This role is (so far) only used for testing
- cluster
tasks:
- name: Creating one group containing all ceph groups - ceph_all
add_host:
name: "{{ item }}"
groups: "ceph_all"
loop: "{{ lookup('inventory_hostnames', ceph_groups|join(':'), wantlist=True) }}"
- hosts: ceph_all
gather_facts: true
any_errors_fatal: true
tags:
- always
- hosts:
- mgrs
become: true
roles:
- ceph-mgr
- hosts:
- ceph-grafana
become: true
roles:
- ceph-prometheus
tags:
- prometheus
- hosts:
- ceph-grafana
become: true
roles:
- ceph-graphite
- hosts:
- ceph-grafana
become: true
roles:
- ceph-grafana
tags:
- grafana
- hosts:
- ceph-grafana
# These are roles used by ceph-ansible
- mons
- agents
- osds
- mdss
- rgws
- nfss
- restapis
- rbdmirrors
- clients
- mgrs
- iscsis
# This role is (so far) only used for testing
- cluster
become: true
roles:
- ceph-node-exporter
tags:
- node-exporter
- hosts:
# These are roles used by ceph-ansible
- mons
- agents
- osds
- mdss
- rgws
- nfss
- restapis
- rbdmirrors
- clients
- mgrs
# This role is (so far) only used for testing
- cluster
become: true
roles:
- ceph-collectd
- hosts: localhost
connection: local
gather_facts: false
tasks:
- name: Print dashboard URL
debug:
msg: "All done! You may access your dashboard at http://{{ groups['ceph-grafana'][0] }}:3000/ with your pre-defined user and password (admin/admin by default). Note that initially the dashboard will be incomplete; after a few minutes it should have enough data collected to function properly." # noqa 204