Commit 7671df8d by Czémán Arnold Committed by cloud

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

parent 16c0a39c
......@@ -3,6 +3,8 @@ include:
- fwdriver.virtualenv
- fwdriver.configuration
- fwdriver.network
- fwdriver.rabbitmq
disable_os_firewall:
cmd.run:
......@@ -45,6 +47,7 @@ firewall:
- ntp
- iptables
- ipset
- rabbitmq-server
- require:
- user: {{ pillar['fwdriver']['user'] }}
- require_in:
......
......@@ -33,6 +33,22 @@ virtual_host:
- require:
- 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" %}
open_amqp_port:
cmd.run:
......@@ -44,5 +60,4 @@ open_amqp_port:
{% else %}
- name: ufw allow 5672/tcp
{% endif %}
{% endif %}
include:
- graphite.rabbitmq
- graphite.virtualenv
- 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:
- manager.gitrepo
- manager.agentgit
- manager.postgres
- manager.rabbitmq
- manager.virtualenv
- manager.configuration
- manager.nginx
......@@ -14,7 +13,6 @@ manager:
- postgresql
- git
- ntp
- rabbitmq-server
- memcached
- gettext
- 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