Commit b226ba5c by Szeberényi Imre

graphite install fix

parent 5979c187
......@@ -2,29 +2,29 @@ admin_pass: '12345678'
admin_user: admin
amqp:
host: 127.0.0.1
password: BXaVnWQzrlvifuEL
password: 3U8pKWMrXwvTl0By
port: 5672
user: cloud
vhost: circle
cache: pylibmc://127.0.0.1:11211/
database:
name: circle
password: Pl3S0bayRhO0gFfr
password: 5073G0NlRCfHtXhc
user: circle
deployment_type: local
fwdriver:
external_if: eth0
external_net: 10.9.0.6/16
gateway: 10.9.255.254
external_if: enp5s0f1
external_net: 10.4.0.204/16
gateway: 10.4.255.254
management_if: ethy
queue_name: test-dev
queue_name: wombat
trunk_if: linkb
graphite:
host: 127.0.0.1
password: UO3xLYBunH1096wt
password: jObTZWyvd7zioM1u
port: 5672
queue: monitor
secret_key: sfM40GA2U9xvHleY
secret_key: 17Z0LiChQm5lqUfe
user: monitor
vhost: monitor
init_type: systemd
......@@ -33,11 +33,11 @@ nfs:
enabled: true
network: 127.0.0.0/8
server: 127.0.0.1
proxy_secret: eG9XdDVJiRcA1ahy
secret_key: hfRBwmFxnj2MPYoT
proxy_secret: r9l2JkQ6YIo4KNgf
secret_key: M4mF9OcrKQwx6Sgq
storagedriver:
queue_name: test-dev
timezone: Europe/Budapest
queue_name: wombat
timezone: Etc/UTC
user: cloud
vmdriver:
hypervisor_type: qemu
hypervisor_type: kvm
......@@ -2,7 +2,7 @@ include:
- profile
- agentdriver
- manager
# - graphite
- graphite
- monitor-client
- storagedriver
- vmdriver
......
......@@ -7,6 +7,16 @@ postactivate:
- group: {{ pillar['graphite']['user'] }}
- mode: 700
requirement0:
file.managed:
- name: /home/{{ pillar['graphite']['user'] }}/requirement0.txt
- template: jinja
- source: salt://graphite/files/requirement0.txt
- user: {{ pillar['graphite']['user'] }}
- group: {{ pillar['graphite']['user'] }}
- require:
- user: {{ pillar['graphite']['user'] }}
requirements:
file.managed:
- name: /home/{{ pillar['graphite']['user'] }}/requirements.txt
......@@ -17,7 +27,8 @@ requirements:
- require:
- user: {{ pillar['graphite']['user'] }}
{% if grains['os_family'] == 'RedHat' or grains['os'] == 'Debian' %}
{% if pillar['init_type'] == 'systemd' %}
/etc/systemd/system/graphite.service:
file.managed:
......
#
--no-binary=:all: -r requirements.txt
Django==1.7
Twisted<12.0
python-memcached
whisper @ https://github.com/graphite-project/whisper/tarball/master
carbon @ https://github.com/graphite-project/carbon/tarball/master
graphite-web @ https://github.com/graphite-project/graphite-web/tarball/master
Django == 3.0.14
Twisted == 22.4.0
txAMQP
simplejson
django-tagging
gunicorn
pytz
pyparsing
whisper
scandir
carbon==1.0.2
cairocffi==0.9.0
graphite-web==1.0.2
cairocffi
service-identity
include:
- graphite.rabbitmq
- manager.rabbitmq
- graphite.virtualenv
- graphite.configuration
graphite:
pkg.installed:
- pkgs:
- git
- ntp
{% if grains['os_family'] == 'RedHat' %}
- python2-pip
- pycairo
- python-devel
- python-virtualenvwrapper
- dejavu-sans-fonts
{% else %}
- python-pip
- python-cairo
- python-dev
- virtualenvwrapper
{% endif %}
- require:
- user: {{ pillar['graphite']['user'] }}
- require_in:
- virtualenv: virtualenv_graphite
- service: graphite
- service: graphite-carbon
# pkg.installed:
# - pkgs:
# - graphite-web
# - graphite-carbon
# - require:
# - user: {{ pillar['graphite']['user'] }}
# - require_in:
# - virtualenv: virtualenv_graphite
# - service: graphite
# - service: graphite-carbon
user:
- present
- name: {{ pillar['graphite']['user'] }}
- gid_from_name: True
- shell: /bin/bash
- usergroup: True
service:
- running
......
rabbitmq-server_monitor:
pkg.installed:
- name: rabbitmq-server
service:
- running
- name: rabbitmq-server
- require:
- pkg: rabbitmq-server
rabbitmq_user_monitor:
rabbitmq_user.present:
- name: {{ pillar['graphite']['user'] }}
- password: {{ pillar['graphite']['password'] }}
virtual_host_monitor:
rabbitmq_vhost.present:
- name: {{ pillar['graphite']['vhost']}}
- user: {{ pillar['graphite']['user'] }}
- conf: .*
- write: .*
- read: .*
virtualenv_graphite:
virtualenv.managed:
- python: /usr/bin/python3
- name: /home/{{ pillar['graphite']['user'] }}/.virtualenvs/graphite
- requirements: /home/{{ pillar['graphite']['user'] }}/requirements.txt
- requirements: /home/{{ pillar['graphite']['user'] }}/requirement0.txt
- user: {{ pillar['graphite']['user'] }}
- cwd: /home/{{ pillar['graphite']['user'] }}
- no_chown: true
- no_binary: all
- require:
- user: {{ pillar['graphite']['user'] }}
- file: /home/{{ pillar['graphite']['user'] }}/requirement0.txt
- file: /home/{{ pillar['graphite']['user'] }}/requirements.txt
- file: /opt/graphite
global-site-packages:
file.absent:
- name: /home/{{pillar['graphite']['user'] }}/.virtualenvs/graphite/lib/python2.7/no-global-site-packages.txt
- name: /home/{{pillar['graphite']['user'] }}/.virtualenvs/graphite/lib/python3.6/no-global-site-packages.txt
- require:
- virtualenv: virtualenv_graphite
......@@ -33,10 +38,12 @@ unicode-fix:
- user: {{ pillar['graphite']['user'] }}
- file: unicode-fix-diff
salt://graphite/files/syncdb.sh:
cmd.script:
- template: jinja
- user: {{ pillar['graphite']['user'] }}
- require:
- virtualenv: virtualenv_graphite
- user: {{ pillar['graphite']['user'] }}
#salt://graphite/files/syncdb.sh:
# cmd.script:
# - template: jinja
# - user: {{ pillar['graphite']['user'] }}
# - group: {{ pillar['graphite']['user'] }}
# - runas: {{ pillar['graphite']['user'] }}
# - require:
# - virtualenv: virtualenv_graphite
# - user: {{ pillar['graphite']['user'] }}
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