Commit 548f89a6 by Czémán Arnold

graphite: fix carbon install problem on redhat systems

parent da1ceb13
...@@ -10,6 +10,7 @@ postactivate: ...@@ -10,6 +10,7 @@ postactivate:
requirements: requirements:
file.managed: file.managed:
- name: /home/{{ pillar['graphite']['user'] }}/requirements.txt - name: /home/{{ pillar['graphite']['user'] }}/requirements.txt
- template: jinja
- source: salt://graphite/files/requirements.txt - source: salt://graphite/files/requirements.txt
- user: {{ pillar['graphite']['user'] }} - user: {{ pillar['graphite']['user'] }}
- group: {{ pillar['graphite']['user'] }} - group: {{ pillar['graphite']['user'] }}
......
...@@ -8,5 +8,7 @@ gunicorn ...@@ -8,5 +8,7 @@ gunicorn
pytz pytz
pyparsing pyparsing
whisper whisper
{% if grains['os_family'] != 'RedHat' %}
carbon==0.9.12 carbon==0.9.12
{% endif %}
graphite-web graphite-web
{% if grains['os_family'] == 'RedHat' %}
python-carbon:
pkg.installed
{% endif %}
virtualenv_graphite: virtualenv_graphite:
virtualenv.managed: virtualenv.managed:
- name: /home/{{ pillar['graphite']['user'] }}/.virtualenvs/graphite - name: /home/{{ pillar['graphite']['user'] }}/.virtualenvs/graphite
......
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