Commit 3f9822e7 by Szeberényi Imre

manager fix

parent e56a6953
...@@ -14,21 +14,32 @@ rabbitmq-server: ...@@ -14,21 +14,32 @@ rabbitmq-server:
- file: rabbitmq-server - file: rabbitmq-server
{% endif %} {% endif %}
virtual_host: virtual_host_amqp:
rabbitmq_vhost.present: rabbitmq_vhost.present:
- name: {{ pillar['amqp']['vhost']}} - name: {{ pillar['amqp']['vhost']}}
- require: - require:
- service: rabbitmq-server - service: rabbitmq-server
rabbitmq_user: rabbitmq_user_amqp:
rabbitmq_user.present: rabbitmq_user.present:
- name: {{ pillar['amqp']['user'] }} - name: {{ pillar['amqp']['user'] }}
- password: {{ pillar['amqp']['password'] }} - password: {{ pillar['amqp']['password'] }}
- perms: [{ {{ pillar['amqp']['vhost']}}: [.*, .*, .*]}] - perms: [{ {{ pillar['amqp']['vhost']}}: [.*, .*, .*]}]
# - '{{ pillar['amqp']['vhost']}}':
# - conf: ".*"
# - write: " .*"
# - read: ".*"
- require: - require:
- service: rabbitmq-server - service: rabbitmq-server
virtual_host_graphite:
rabbitmq_vhost.present:
- name: {{ pillar['graphite']['vhost']}}
- require:
- service: rabbitmq-server
rabbitmq_user_graphite:
rabbitmq_user.present:
- name: {{ pillar['graphite']['user'] }}
- password: {{ pillar['graphite']['password'] }}
- perms: [{ {{ pillar['graphite']['vhost']}}: [.*, .*, .*]}]
- require:
- service: rabbitmq-server
...@@ -23,14 +23,27 @@ virtualenv_manager: ...@@ -23,14 +23,27 @@ virtualenv_manager:
- no_chown: true - no_chown: true
- require: - require:
- git: gitrepo - git: gitrepo
- virtualenv: virtualenv_install_first
{% if grains['os_family'] == 'RedHat' %} {% if grains['os_family'] == 'RedHat' %}
- environ: m2crypto_swig_env - environ: m2crypto_swig_env
{% endif %} {% endif %}
virtualenv_install_first:
virtualenv.managed:
- python: /usr/bin/python3
- name: /home/{{ pillar['user'] }}/.virtualenvs/circle
- requirements: /home/{{ pillar['user'] }}/circle/requirements/install_first.txt
- user: {{ pillar['user'] }}
- cwd: /home/{{ pillar['user'] }}/circle/
- no_chown: true
/home/{{ pillar['user'] }}/.virtualenvs/circle/lib/python3.6/site-packages/simplesshkey/models.py: /home/{{ pillar['user'] }}/.virtualenvs/circle/lib/python3.6/site-packages/simplesshkey/models.py:
file.patch: file.patch:
- source: file:///home/{{ pillar['user'] }}/circle/requirements/simplesshkey.patch - source: file:///home/{{ pillar['user'] }}/circle/requirements/simplesshkey.patch
- strip: 5 - strip: 5
- require:
- virtualenv: virtualenv_manager
salt://manager/files/syncdb.sh: salt://manager/files/syncdb.sh:
cmd.script: cmd.script:
......
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