1
0
Fork 0
mirror of synced 2024-11-22 08:55:35 -05:00

database setup

This commit is contained in:
Ales Komarek 2015-12-08 10:43:59 +01:00
parent 83b58af7d4
commit 9858822f85
3 changed files with 24 additions and 35 deletions

View file

@ -8,42 +8,25 @@ A beautiful, easy to use and feature rich Graphite dashboard replacement and gra
Sample pillar Sample pillar
============= =============
grafana: Sample pillar with source from system package
server:
enabled: true
source:
type: 'git'
address: https://github.com/torkelo/grafana.git
rev: master
elasticsearch:
host: localhost
port: 9200
data:
- name: metrics1
type: graphite
host: metrics1.domain.com
ssl: true
port: 443
user: test
Sample pillar with source from stable package
grafana: grafana:
server: server:
enabled: true enabled: true
source: source:
type: 'pkg' type: 'pkg'
rev: 1.4.0 version: 2.5.0
elasticsearch: database:
engine: postgresql
host: localhost host: localhost
port: 9200 port: 5432
data: data_source:
- name: metrics1 metrics1:
type: graphite engine: graphite
host: metrics1.domain.com host: metrics1.domain.com
ssl: true ssl: true
port: 443 port: 443
user: test user: test
Read more Read more
========= =========

View file

@ -54,11 +54,11 @@ http_port = {{ server.bind.port }}
#################################### Database #################################### #################################### Database ####################################
[database] [database]
# Either "mysql", "postgres" or "sqlite3", it's your choice # Either "mysql", "postgres" or "sqlite3", it's your choice
;type = sqlite3 type = {% if server.database.engine == "postgresql" %}postgres{% else %}{{ server.database.engine }}{% endif %}
;host = 127.0.0.1:3306 host = {{ server.database.host }}:{{ server.database.port }}
;name = grafana name = {{ server.database.name }}
;user = root user = {{ server.database.user }}
;password = password = {{ server.database.password }}
# For "postgres" only, either "disable", "require" or "verify-full" # For "postgres" only, either "disable", "require" or "verify-full"
;ssl_mode = disable ;ssl_mode = disable

View file

@ -3,4 +3,10 @@ applications:
parameters: parameters:
grafana: grafana:
server: server:
enabled: true enabled: true
database:
engine: postgresql
host: 127.0.0.1
name: grafana
password: ${_param:postgresql_grafana_password}
user: grafana