Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
salt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b1c8fe53
authored
Jul 07, 2016
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fwdriver: move rabbitmq.sls and rabbitMQ configuration to fwdriver module
parent
b3d51f7c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
28 deletions
+19
-28
salt/fwdriver/init.sls
+3
-0
salt/fwdriver/rabbitmq.sls
+16
-1
salt/graphite/init.sls
+0
-1
salt/graphite/rabbitmq.sls
+0
-24
salt/manager/init.sls
+0
-2
No files found.
salt/fwdriver/init.sls
View file @
b1c8fe53
...
...
@@ -3,6 +3,8 @@ include:
- fwdriver.virtualenv
- fwdriver.configuration
- fwdriver.network
- fwdriver.rabbitmq
disable_os_firewall:
cmd.run:
...
...
@@ -44,6 +46,7 @@ firewall:
- ntp
- iptables
- ipset
- rabbitmq-server
- require:
- user: {{ pillar['fwdriver']['user'] }}
- require_in:
...
...
salt/
manag
er/rabbitmq.sls
→
salt/
fwdriv
er/rabbitmq.sls
View file @
b1c8fe53
...
...
@@ -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 %}
salt/graphite/init.sls
View file @
b1c8fe53
include:
- graphite.rabbitmq
- graphite.virtualenv
- graphite.configuration
...
...
salt/graphite/rabbitmq.sls
deleted
100644 → 0
View file @
b3d51f7c
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']}}
salt/manager/init.sls
View file @
b1c8fe53
...
...
@@ -3,7 +3,6 @@ include:
- manager.gitrepo
- manager.agentgit
- manager.postgres
- manager.rabbitmq
- manager.virtualenv
- manager.configuration
- manager.nginx
...
...
@@ -15,7 +14,6 @@ manager:
- git
- python-pip
- ntp
- rabbitmq-server
- memcached
- gettext
- wget
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment