initial commit
This commit is contained in:
commit
4b6c866f20
3 changed files with 54 additions and 0 deletions
15
README.md
Normal file
15
README.md
Normal 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
5
init.sls
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
include:
|
||||
{% if pillar.grafana.server is defined %}
|
||||
- grafana.server
|
||||
{% endif %}
|
34
server.sls
Normal file
34
server.sls
Normal 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 %}
|
Loading…
Reference in a new issue