2015-12-08 04:23:39 -05:00
|
|
|
|
2016-10-29 18:27:24 -04:00
|
|
|
{%- load_yaml as server_defaults %}
|
2015-12-08 04:23:39 -05:00
|
|
|
Debian:
|
|
|
|
pkgs:
|
|
|
|
- grafana
|
2015-12-08 04:26:39 -05:00
|
|
|
service: grafana-server
|
2017-08-06 21:30:31 -04:00
|
|
|
user: grafana
|
|
|
|
group: grafana
|
2018-12-11 10:34:16 -05:00
|
|
|
protocol: http
|
|
|
|
domain: localhost
|
|
|
|
root_url: '%(protocol)s://%(domain)s:%(http_port)s/'
|
2017-08-06 21:30:31 -04:00
|
|
|
path:
|
|
|
|
home: /usr/share/grafana
|
2017-08-04 11:36:22 -04:00
|
|
|
data: /var/lib/grafana
|
|
|
|
logs: /var/log/grafana
|
2017-09-14 10:58:22 -04:00
|
|
|
pid_file_dir: /var/run/grafana
|
2015-12-08 04:23:39 -05:00
|
|
|
bind:
|
|
|
|
address: 0.0.0.0
|
|
|
|
port: 3000
|
2016-10-21 18:36:50 -04:00
|
|
|
session:
|
|
|
|
engine: file
|
|
|
|
auth:
|
|
|
|
engine: application
|
2016-12-05 07:11:53 -05:00
|
|
|
ldap:
|
|
|
|
enabled: false
|
|
|
|
host: '127.0.0.1'
|
|
|
|
port: 389
|
|
|
|
use_ssl: false
|
|
|
|
bind_dn: "cn=admin,dc=grafana,dc=org"
|
|
|
|
bind_password: "grafana"
|
|
|
|
user_search_filter: "(cn=%s)"
|
|
|
|
user_search_base_dns:
|
|
|
|
- "dc=grafana,dc=org"
|
2016-12-13 07:53:05 -05:00
|
|
|
servers:
|
|
|
|
attributes:
|
|
|
|
name: "givenName"
|
|
|
|
surname: "sn"
|
|
|
|
username: "cn"
|
|
|
|
member_of: "memberOf"
|
|
|
|
email: "email"
|
2016-10-21 18:36:50 -04:00
|
|
|
admin:
|
|
|
|
user: admin
|
|
|
|
password: admin
|
|
|
|
allow_sign_up: False
|
|
|
|
allow_org_create: False
|
|
|
|
auto_assign_role: Viewer
|
2016-10-29 18:27:24 -04:00
|
|
|
dir:
|
|
|
|
static: /usr/share/grafana/public
|
2016-10-26 05:25:37 -04:00
|
|
|
dashboards:
|
|
|
|
enabled: false
|
2015-12-08 04:23:39 -05:00
|
|
|
{%- endload %}
|
|
|
|
|
2016-10-29 18:27:24 -04:00
|
|
|
{%- set server = salt['grains.filter_by'](server_defaults, merge=salt['pillar.get']('grafana:server')) %}
|
2016-10-21 18:36:50 -04:00
|
|
|
|
2016-10-29 18:27:24 -04:00
|
|
|
{%- load_yaml as client_defaults %}
|
2016-10-21 18:36:50 -04:00
|
|
|
Debian:
|
|
|
|
server:
|
|
|
|
host: 127.0.0.1
|
|
|
|
port: 3000
|
2016-10-22 06:30:30 -04:00
|
|
|
remote_data:
|
|
|
|
engine: none
|
2016-10-21 18:36:50 -04:00
|
|
|
datasource: {}
|
|
|
|
dashboard: {}
|
|
|
|
{%- endload %}
|
|
|
|
|
2016-10-29 18:27:24 -04:00
|
|
|
{%- set client = salt['grains.filter_by'](client_defaults, merge=salt['pillar.get']('grafana:client')) %}
|