Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
0c6eac09
Commit
0c6eac09
authored
Jan 13, 2014
by
Carson Gee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added mirrored queues for clusters and VHOST support
parent
2a542cdf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
playbooks/roles/rabbitmq/defaults/main.yml
+3
-0
playbooks/roles/rabbitmq/tasks/main.yml
+13
-2
No files found.
playbooks/roles/rabbitmq/defaults/main.yml
View file @
0c6eac09
...
...
@@ -13,6 +13,9 @@ RABBIT_USERS:
RABBITMQ_CLUSTERED
:
!!null
RABBITMQ_VHOSTS
:
-
'
/'
# Internal role variables below this line
# option to force deletion of the mnesia dir
...
...
playbooks/roles/rabbitmq/tasks/main.yml
View file @
0c6eac09
...
...
@@ -72,14 +72,25 @@
-
name
:
rabbitmq | remove guest user
rabbitmq_user
:
user="guest" state=absent
-
name
:
rabbitmq | add vhosts
rabbitmq_vhost
:
name={{ item }} state=present
with_items
:
RABBITMQ_VHOSTS
-
name
:
rabbitmq | add admin users
rabbitmq_user
:
>
user='{{item
.name}}' password='{{item
.password}}'
user='{{item
[0].name}}' password='{{item[0]
.password}}'
read_priv='.*' write_priv='.*'
configure_priv='.*' tags="administrator" state=present
with_items
:
rabbitmq_auth_config.admins
vhost={{ item[1] }}
with_nested
:
-
${rabbitmq_auth_config.admins}
-
RABBITMQ_VHOSTS
when
:
"
'admins'
in
rabbitmq_auth_config"
-
name
:
rabbitmq | make queues mirrored
shell
:
"
/usr/sbin/rabbitmqctl
set_policy
HA
'^(?!amq
\\
.).*'
'{
\"
ha-mode
\"
:
\"
all
\"
}'"
when
:
RABBITMQ_CLUSTERED or rabbitmq_clustered_hosts|length > 1
#
# Depends upon the management plugin
#
...
...
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