-
Notifications
You must be signed in to change notification settings - Fork 5
/
main.yml
103 lines (89 loc) · 2.91 KB
/
main.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
---
## General
grafana_version: latest # Or: 5.0.3, 4.5.0, ...
# Owner
grafana_user: grafana
grafana_group: grafana
## Service options
grafana_app_mode: production # possible values : production, development
grafana_service_timeout: 60
grafana_api_retries: 60
# start on boot
grafana_service_enabled: True
# current state: started, stopped
grafana_service_state: started
# Files & Paths
grafana_data_path: /var/lib/grafana
grafana_plugins_path: "{{ grafana_data_path }}/plugins"
grafana_log_path: /var/log/grafana
grafana_dashboards_path: "{{ grafana_data_path }}/dashboards"
grafana_skeleton_paths:
- "{{ grafana_data_path }}"
- "{{ grafana_plugins_path }}"
- "{{ grafana_log_path }}"
- "{{ grafana_dashboards_path }}"
grafana_datasource_template_path: templates/datasource.json.j2
# Port & host
grafana_host: "{{ ansible_nodename }}"
grafana_port: 8080
grafana_domain: "{{ ansible_domain }}"
grafana_serve_from_sub_path: false
grafana_sub_path: ''
## DATABASE
grafana_database_type: mysql
grafana_database_host: 127.0.0.1
grafana_database_port: 3306
grafana_database_database: grafana
grafana_database_user: grafana
grafana_database_password: grafana
grafana_database_ssl_mode: 'false'
## SECURITY
grafana_admin_user: grafana
grafana_admin_password: grafana
## USERS
grafana_users_allow_signup: 'false'
## LDAP
grafana_ldap_authentication: 'false'
grafana_ldap_server: localhost
grafana_ldap_port: 10389
grafana_ldap_dn: uid=admin,ou=system
grafana_ldap_password: secret
grafana_ldap_base_dn: ou=basicauth,ou=users,ou=axis,o=abc,c=au
grafana_ldap_filter: (uid={0})
# PLUGINS
grafana_plugins: []
grafana_plugins_repo: "https://grafana.com/api/plugins"
# - name: camptocamp-prometheus-alertmanager-datasource
# version: 0.0.1
# state: present
grafana_plugins_enable_alpha: 'false'
grafana_plugins_allow_loading_unsigned_plugins: ''
grafana_plugins_admin_enabled: 'false'
grafana_plugins_admin_external_manage_enabled: 'false'
grafana_plugins_plugin_catalog: ''
## LOG
grafana_log_mode: console file
grafana_log_level: info
## ORGANISATION
# grafana_organisation:
## DATASOURCE
grafana_datasource_name: Prometheus
grafana_datasource_type: prometheus
grafana_datasource_url_protocol: http
grafana_datasource_url: localhost:9090 # No protocol
grafana_datasource_basicauth: 'false'
grafana_datasource_basicauth_user:
grafana_datasource_basicauth_password:
grafana_datasource_default: 'true'
# To add more datasources override this array to add as many datasources as you need
grafana_datasources:
- name: "{{ grafana_datasource_name }}"
type: "{{ grafana_datasource_type }}"
url_protocol: "{{ grafana_datasource_url_protocol }}"
url: "{{ grafana_datasource_url }}"
basicauth: "{{ grafana_datasource_basicauth }}"
basicauth_user: "{{ grafana_datasource_basicauth_user }}"
basicauth_password: "{{ grafana_datasource_basicauth_password }}"
default: "{{ grafana_datasource_default }}"
jsondata: {}
secureJsonData: {}