Skip to content

Commit

Permalink
RedHat
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin DUPUIS committed Nov 27, 2018
1 parent f6b6001 commit e5ce528
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions grafana/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,51 @@ Debian:
static: /usr/share/grafana/public
dashboards:
enabled: false
RedHat:
pkgs:
- grafana
service: grafana-server
user: grafana
group: grafana
path:
home: /usr/share/grafana
data: /var/lib/grafana
logs: /var/log/grafana
pid_file_dir: /var/run/grafana
bind:
address: 0.0.0.0
port: 3000
session:
engine: file
auth:
engine: application
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"
servers:
attributes:
name: "givenName"
surname: "sn"
username: "cn"
member_of: "memberOf"
email: "email"
admin:
user: admin
password: admin
allow_sign_up: False
allow_org_create: False
auto_assign_role: Viewer
dir:
static: /usr/share/grafana/public
dashboards:
enabled: false
{%- endload %}

{%- set server = salt['grains.filter_by'](server_defaults, merge=salt['pillar.get']('grafana:server')) %}
Expand All @@ -58,6 +103,14 @@ Debian:
engine: none
datasource: {}
dashboard: {}
RedHat:
server:
host: 127.0.0.1
port: 3000
remote_data:
engine: none
datasource: {}
dashboard: {}
{%- endload %}

{%- set client = salt['grains.filter_by'](client_defaults, merge=salt['pillar.get']('grafana:client')) %}

0 comments on commit e5ce528

Please sign in to comment.