-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmonitoring.yml
86 lines (81 loc) · 2.88 KB
/
monitoring.yml
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
---
- name: Install DC/OS Monitoring
hosts: localhost
serial: 1
become: false
tasks:
- name: Connect to the cluster
include: connection.yml
- name: Create a group for dcos-monitoring
dcos_iam_group:
gid: dcos-monitoring-group
description: Permissions for dcos-monitoring
state: present
permissions:
- rid: dcos:adminrouter:ops:ca:rw
action: full
- rid: dcos:adminrouter:ops:ca:ro
action: full
- rid: dcos:mesos:agent:framework:role:slave_public
action: read
- rid: dcos:mesos:master:framework:role:dcos-monitoring-role
action: create
- rid: dcos:mesos:master:framework:role:slave_public
action: read
- rid: dcos:mesos:master:framework:role:slave_public/dcos-monitoring-role
action: read
- rid: dcos:mesos:master:framework:role:slave_public/dcos-monitoring-role
action: create
- rid: dcos:mesos:master:reservation:principal:dcos-monitoring-principal
action: delete
- rid: dcos:mesos:master:reservation:role:dcos-monitoring-role
action: create
- rid: dcos:mesos:master:reservation:role:slave_public/dcos-monitoring-role
action: create
- rid: dcos:mesos:master:task:user:nobody
action: create
- rid: dcos:mesos:master:volume:principal:dcos-monitoring-principal
action: delete
- rid: dcos:mesos:master:volume:role:dcos-monitoring-role
action: create
- rid: dcos:mesos:master:volume:role:slave_public/dcos-monitoring-role
action: create
- rid: dcos:secrets:default:/dcos-monitoring/*
action: full
- rid: dcos:secrets:list:default:/dcos-monitoring
action: read
- name: Create service account for dcos-monitoring
dcos_iam_serviceaccount:
sid: dcos-monitoring-principal
description: 'dcos-monitoring Service Account'
secret_path: dcos-monitoring/secret
groups:
- dcos-monitoring-group
state: present
- name: Ensure dcos-monitoring is installed
dcos_package:
name: dcos-monitoring
app_id: dcos-monitoring
version: v1.0.2
state: present
options:
{
"service": {
"name": "dcos-monitoring",
"service_account": "dcos-monitoring-principal",
"service_account_secret": "dcos-monitoring/secret"
},
"pushgateway": {
"enabled": true
},
"grafana": {
"admin_router_proxy": true,
"use_light_theme": true,
"default_dashboards": true,
"dashboard_config_repository": {
"url": "https://github.com/dcos-labs/professional-services",
"path": "/docs/grafana-dashboards-dcos/dcos-1.12/",
"reference_name": "refs/heads/master"
}
}
}