Commit b1c8fe53 by Czémán Arnold

fwdriver: move rabbitmq.sls and rabbitMQ configuration to fwdriver module

parent b3d51f7c
...@@ -3,6 +3,8 @@ include: ...@@ -3,6 +3,8 @@ include:
- fwdriver.virtualenv - fwdriver.virtualenv
- fwdriver.configuration - fwdriver.configuration
- fwdriver.network - fwdriver.network
- fwdriver.rabbitmq
disable_os_firewall: disable_os_firewall:
cmd.run: cmd.run:
...@@ -44,6 +46,7 @@ firewall: ...@@ -44,6 +46,7 @@ firewall:
- ntp - ntp
- iptables - iptables
- ipset - ipset
- rabbitmq-server
- require: - require:
- user: {{ pillar['fwdriver']['user'] }} - user: {{ pillar['fwdriver']['user'] }}
- require_in: - require_in:
......
...@@ -33,6 +33,22 @@ virtual_host: ...@@ -33,6 +33,22 @@ virtual_host:
- require: - require:
- service: rabbitmq-server - service: rabbitmq-server
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']}}
{% if pillar["deployment_mode"] == "node" %} {% if pillar["deployment_mode"] == "node" %}
open_amqp_port: open_amqp_port:
cmd.run: cmd.run:
...@@ -44,5 +60,4 @@ open_amqp_port: ...@@ -44,5 +60,4 @@ open_amqp_port:
{% else %} {% else %}
- name: ufw allow 5672/tcp - name: ufw allow 5672/tcp
{% endif %} {% endif %}
{% endif %} {% endif %}
include: include:
- graphite.rabbitmq
- graphite.virtualenv - graphite.virtualenv
- graphite.configuration - graphite.configuration
......
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'] }}
- require:
- rabbitmq_vhost: virtual_host_monitor
- perms:
- {{ pillar['graphite']['vhost']}}:
- .*
- .*
- .*
virtual_host_monitor:
rabbitmq_vhost.present:
- name: {{ pillar['graphite']['vhost']}}
...@@ -3,7 +3,6 @@ include: ...@@ -3,7 +3,6 @@ include:
- manager.gitrepo - manager.gitrepo
- manager.agentgit - manager.agentgit
- manager.postgres - manager.postgres
- manager.rabbitmq
- manager.virtualenv - manager.virtualenv
- manager.configuration - manager.configuration
- manager.nginx - manager.nginx
...@@ -15,7 +14,6 @@ manager: ...@@ -15,7 +14,6 @@ manager:
- git - git
- python-pip - python-pip
- ntp - ntp
- rabbitmq-server
- memcached - memcached
- gettext - gettext
- wget - wget
......
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