1
0
Fork 0

initial commit

This commit is contained in:
Ales Komarek 2014-02-24 21:48:29 +01:00
commit 4b6c866f20
3 changed files with 54 additions and 0 deletions

15
README.md Normal file
View File

@ -0,0 +1,15 @@
# Grafana
A beautiful, easy to use and feature rich Graphite dashboard replacement and graph editor.
## Sample pillar
grafana:
server:
enabled: trues
## Read more
* http://grafana.org/
* https://github.com/torkelo/grafana/wiki

5
init.sls Normal file
View File

@ -0,0 +1,5 @@
include:
{% if pillar.grafana.server is defined %}
- grafana.server
{% endif %}

34
server.sls Normal file
View File

@ -0,0 +1,34 @@
{%- if pillar.grafana.server.enabled %}
include:
- git
- nodejs
/srv/grafana:
file:
- directory
- mode: 755
- makedirs: true
grafana_repository:
git.latest:
- name: https://github.com/torkelo/grafana.git
- rev: master
- target: /srv/grafana/site
- require:
- file: /srv/grafana
- pkg: git_packages
{#
/srv/grafana/sites/{{ app.name }}/config/configuration.yml:
file:
- managed
- source: salt://grafana/conf/configuration.yml
- template: jinja
- defaults:
app_name: "{{ app.name }}"
- require:
- hg: repo-{{ app.name }}
#}
{%- endif %}