Commit c2af621b by Szeberényi Imre

graphite fix

parent 537f1a55
...@@ -2,29 +2,29 @@ admin_pass: '12345678' ...@@ -2,29 +2,29 @@ admin_pass: '12345678'
admin_user: admin admin_user: admin
amqp: amqp:
host: 127.0.0.1 host: 127.0.0.1
password: 3U8pKWMrXwvTl0By password: vWGoF2wQUeJ6YiT0
port: 5672 port: 5672
user: cloud user: cloud
vhost: circle vhost: circle
cache: pylibmc://127.0.0.1:11211/ cache: pylibmc://127.0.0.1:11211/
database: database:
name: circle name: circle
password: 5073G0NlRCfHtXhc password: qBZbKIfyX9JmauYN
user: circle user: circle
deployment_type: local deployment_type: local
fwdriver: fwdriver:
external_if: enp5s0f1 external_if: eth0
external_net: 10.4.0.204/16 external_net: 10.34.0.85/16
gateway: 10.4.255.254 gateway: 10.34.255.254
management_if: ethy management_if: ethy
queue_name: wombat queue_name: mycircle-dev
trunk_if: linkb trunk_if: linkb
graphite: graphite:
host: 127.0.0.1 host: 127.0.0.1
password: jObTZWyvd7zioM1u password: lv0NtzdTKOfWFqbw
port: 5672 port: 5672
queue: monitor queue: monitor
secret_key: 17Z0LiChQm5lqUfe secret_key: y7k6op3Qc2hM0fTn
user: monitor user: monitor
vhost: monitor vhost: monitor
init_type: systemd init_type: systemd
...@@ -33,11 +33,11 @@ nfs: ...@@ -33,11 +33,11 @@ nfs:
enabled: true enabled: true
network: 127.0.0.0/8 network: 127.0.0.0/8
server: 127.0.0.1 server: 127.0.0.1
proxy_secret: r9l2JkQ6YIo4KNgf proxy_secret: 764OfnrsZ5lU2YMi
secret_key: M4mF9OcrKQwx6Sgq secret_key: CbRqoynxNZTv7uE6
storagedriver: storagedriver:
queue_name: wombat queue_name: mycircle-dev
timezone: Etc/UTC timezone: Europe/Budapest
user: cloud user: cloud
vmdriver: vmdriver:
hypervisor_type: kvm hypervisor_type: qemu
...@@ -17,6 +17,16 @@ requirement0: ...@@ -17,6 +17,16 @@ requirement0:
- require: - require:
- user: {{ pillar['graphite']['user'] }} - user: {{ pillar['graphite']['user'] }}
requirement1:
file.managed:
- name: /home/{{ pillar['graphite']['user'] }}/requirement1.txt
- template: jinja
- source: salt://graphite/files/requirement1.txt
- user: {{ pillar['graphite']['user'] }}
- group: {{ pillar['graphite']['user'] }}
- require:
- user: {{ pillar['graphite']['user'] }}
requirements: requirements:
file.managed: file.managed:
- name: /home/{{ pillar['graphite']['user'] }}/requirements.txt - name: /home/{{ pillar['graphite']['user'] }}/requirements.txt
......
# #
--no-binary=:all: -r requirements.txt --no-binary=:all: -r requirement1.txt
#
graphite-web
whisper
carbon
python-memcached python-memcached
whisper @ https://github.com/graphite-project/whisper/tarball/master #Django == 3.0.14
carbon @ https://github.com/graphite-project/carbon/tarball/master #Twisted == 22.4.0
graphite-web @ https://github.com/graphite-project/graphite-web/tarball/master
Django == 3.0.14
Twisted == 22.4.0
txAMQP txAMQP
simplejson simplejson
django-tagging django-tagging
......
...@@ -2,14 +2,28 @@ virtualenv_graphite: ...@@ -2,14 +2,28 @@ virtualenv_graphite:
virtualenv.managed: virtualenv.managed:
- python: /usr/bin/python3 - python: /usr/bin/python3
- name: /home/{{ pillar['graphite']['user'] }}/.virtualenvs/graphite - name: /home/{{ pillar['graphite']['user'] }}/.virtualenvs/graphite
- requirements: /home/{{ pillar['graphite']['user'] }}/requirement0.txt - requirements: /home/{{ pillar['graphite']['user'] }}/requirements.txt
- user: {{ pillar['graphite']['user'] }} - user: {{ pillar['graphite']['user'] }}
- cwd: /home/{{ pillar['graphite']['user'] }} - cwd: /home/{{ pillar['graphite']['user'] }}
- no_chown: true - no_chown: true
- require:
- virtualenv: virtualenv_graphite_first
virtualenv_graphite_first:
virtualenv.managed:
- python: /usr/bin/python3
- name: /home/{{ pillar['graphite']['user'] }}/.virtualenvs/graphite
- requirements: /home/{{ pillar['graphite']['user'] }}/requirement0.txt
- user: {{ pillar['graphite']['user'] }}
- cwd: /home/{{ pillar['graphite']['user'] }}
- no_chown: true
- no_binary: all - no_binary: all
- env_vars:
PYTHONIOENCODING: 'utf-8'
- require: - require:
- user: {{ pillar['graphite']['user'] }} - user: {{ pillar['graphite']['user'] }}
- file: /home/{{ pillar['graphite']['user'] }}/requirement0.txt - file: /home/{{ pillar['graphite']['user'] }}/requirement0.txt
- file: /home/{{ pillar['graphite']['user'] }}/requirement1.txt
- file: /home/{{ pillar['graphite']['user'] }}/requirements.txt - file: /home/{{ pillar['graphite']['user'] }}/requirements.txt
- file: /opt/graphite - file: /opt/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