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
a68c8281
Commit
a68c8281
authored
Oct 30, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #388 from edx/jarv/rabbit-cluster
fixing check for cluster config
parents
43010484
8bc32d55
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
playbooks/roles/rabbitmq/defaults/main.yml
+15
-12
playbooks/roles/rabbitmq/templates/rabbitmq.config.j2
+1
-1
No files found.
playbooks/roles/rabbitmq/defaults/main.yml
View file @
a68c8281
#Variables for rabbitmq
---
# Environment specific vars
RABBIT_ERLANG_COOKIE
:
'
DEFAULT_COOKIE'
RABBIT_USERS
:
-
name
:
'
admin'
password
:
'
the
example
admin
password'
-
name
:
'
edx'
password
:
'
edx'
-
name
:
'
celery'
password
:
'
celery'
RABBITMQ_CLUSTERED
:
!!null
# Internal role variables below this line
rabbitmq_apt_key
:
"
http://www.rabbitmq.com/rabbitmq-signing-key-public.asc"
rabbitmq_repository
:
"
deb
http://www.rabbitmq.com/debian/
testing
main"
rabbitmq_pkg
:
"
rabbitmq-server"
...
...
@@ -16,18 +31,6 @@ rabbitmq_port: 5672
rabbitmq_management_port
:
15672
rabbitmq_ip
:
"
{{
ansible_default_ipv4.address
}}"
# Vars meant to be overridden.
RABBIT_ERLANG_COOKIE
:
'
DEFAULT_COOKIE'
RABBIT_USERS
:
-
name
:
'
admin'
password
:
'
the
example
admin
password'
-
name
:
'
edx'
password
:
'
edx'
-
name
:
'
celery'
password
:
'
celery'
RABBITMQ_CLUSTERED
:
!!null
# Structure for auth config file.
rabbitmq_auth_config
:
erlang_cookie
:
$RABBIT_ERLANG_COOKIE
...
...
playbooks/roles/rabbitmq/templates/rabbitmq.config.j2
View file @
a68c8281
...
...
@@ -2,7 +2,7 @@
and also a rabbitmq machine.
#}
{%- if RABBITMQ_CLUSTERED
is defined
-%}
{%- if RABBITMQ_CLUSTERED -%}
{%- set hosts= [] -%}
{%- set all_rabbit_hosts = [] -%}
{%- do all_rabbit_hosts.extend(groups.tag_role_rabbitmq) -%}
...
...
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