Commit e0781e73 by Desztics Armand

graphite

parent 24ed6fa7
......@@ -17,7 +17,7 @@ requirements:
- require:
- user: {{ pillar['graphite']['user'] }}
{% if grains['os_family'] == 'RedHat' or grains['os'] == 'Debian' %}
{% if grains['os_family'] == 'RedHat' or grains['os'] == 'Debian' or grains['osfinger'] == 'Ubuntu-16.04' %}
/etc/systemd/system/graphite.service:
file.managed:
......
......@@ -9,6 +9,6 @@ pytz
pyparsing
whisper
{% if grains['os_family'] != 'RedHat' %}
carbon==0.9.12
carbon==0.9.12 --install-option="--prefix=/opt/graphite" --install-option="--install-lib=/opt/graphite/lib"
{% endif %}
graphite-web
graphite-web --install-option="--prefix=/opt/graphite" --install-option="--install-lib=/opt/graphite/webapp"
......@@ -11,11 +11,14 @@ rabbitmq_user_monitor:
rabbitmq_user.present:
- name: {{ pillar['graphite']['user'] }}
- password: {{ pillar['graphite']['password'] }}
- require:
- rabbitmq_vhost: virtual_host_monitor
- perms:
- {{ pillar['graphite']['vhost']}}:
- .*
- .*
- .*
virtual_host_monitor:
rabbitmq_vhost.present:
- name: {{ pillar['graphite']['vhost']}}
- user: {{ pillar['graphite']['user'] }}
- conf: .*
- write: .*
- read: .*
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment