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
edx
configuration
Commits
e01f7b68
Commit
e01f7b68
authored
Feb 05, 2014
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactoring
parent
bface3c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
35 deletions
+5
-35
playbooks/roles/rabbitmq/defaults/main.yml
+5
-5
playbooks/roles/rabbitmq/templates/rabbitmq.config.j2
+0
-30
No files found.
playbooks/roles/rabbitmq/defaults/main.yml
View file @
e01f7b68
#Variables for rabbitmq
---
rabbit_app_dir
:
"
{{
COMMON_APP_DIR
}}/rabbitmq"
rabbit_data_dir
:
"
{{
COMMON_DATA_DIR
}}/rabbitmq"
rabbit_log_dir
:
"
{{
COMMON_LOG_DIR
}}/rabbitmq"
rabbit_cfg_dir
:
"
{{
COMMON_CFG_DIR
}}/rabbitmq"
# Environment specific vars
RABBIT_ERLANG_COOKIE
:
'
DEFAULT_COOKIE'
RABBIT_USERS
:
...
...
@@ -42,11 +47,6 @@ rabbitmq_auth_config:
erlang_cookie
:
$RABBIT_ERLANG_COOKIE
admins
:
$RABBIT_USERS
# If the system is running out of an Amazon Web Services
# cloudformation stack, this group name can used to pull out
# the name of the stack the rabbit server resides in.
rabbitmq_aws_stack_name
:
"
tag_aws_cloudformation_stack-name_"
rabbitmq_clustered_hosts
:
[]
rabbitmq_plugins
:
...
...
playbooks/roles/rabbitmq/templates/rabbitmq.config.j2
deleted
100644 → 0
View file @
bface3c1
{# Get the list of hosts that are in the same stack as the current machine
and also a rabbitmq machine.
#}
{%- if RABBITMQ_CLUSTERED -%}
{%- set hosts= [] -%}
{%- set all_rabbit_hosts = [] -%}
{%- do all_rabbit_hosts.extend(groups.tag_role_rabbitmq) -%}
{%- do all_rabbit_hosts.extend(groups.tag_group_rabbitmq) -%}
{%- for name in group_names -%}
{%- if name.startswith(rabbitmq_aws_stack_name) -%}
{%- for host in all_rabbit_hosts -%}
{%- if host in groups[name] -%}
{% do hosts.append("rabbit@ip-" + host.replace('.','-')) %}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{%- endfor -%}
[{rabbit,
[{cluster_nodes, {['{{ hosts|join("\',\'") }}'], disc}}]}].
{%- else -%}
{# If rabbitmq_clustered_hosts is set, use that instead assuming an aws stack.
Note: That these names should include the node name prefix. eg. 'rabbit@hostname'
#}
[{rabbit,
[{cluster_nodes, {['{{ rabbitmq_clustered_hosts|join("\',\'") }}'], disc}}]}].
{%- endif -%}
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