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
73f68f37
Commit
73f68f37
authored
Oct 30, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to use cluster enabling vars in both rabbit and mongo.
parent
dc073224
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
5 deletions
+13
-5
playbooks/roles/mongo/defaults/main.yml
+6
-0
playbooks/roles/mongo/tasks/main.yml
+3
-3
playbooks/roles/mongo/templates/mongodb.conf.j2
+1
-1
playbooks/roles/rabbitmq/defaults/main.yml
+2
-0
playbooks/roles/rabbitmq/templates/rabbitmq.config.j2
+1
-1
No files found.
playbooks/roles/mongo/defaults/main.yml
View file @
73f68f37
...
...
@@ -9,6 +9,8 @@ mongo_cluster_members:
mongo_data_dir
:
"
{{
COMMON_DATA_DIR
}}/mongo"
mongo_log_dir
:
"
{{
COMMON_LOG_DIR
}}/mongo"
mongo_user
:
mongodb
# Vars Meant to be overridden
MONGO_USERS
:
-
user
:
cs_comments_service
password
:
password
...
...
@@ -17,5 +19,9 @@ MONGO_USERS:
password
:
password
database
:
edxapp
MONGO_CLUSTERED
:
!!null
##
mongo_logpath
:
"
{{
mongo_log_dir
}}/mongodb.log"
mongo_dbpath
:
"
{{
mongo_data_dir
}}/mongodb"
playbooks/roles/mongo/tasks/main.yml
View file @
73f68f37
...
...
@@ -46,7 +46,7 @@
mode=0600
owner=mongodb
group=mongodb
when
:
mongo_clustered
is defined
when
:
MONGO_CLUSTERED
is defined
-
name
:
mongo | copy configuration template
template
:
src=mongodb.conf.j2 dest=/etc/mongodb.conf backup=yes
...
...
@@ -60,11 +60,11 @@
-
name
:
mongo | Create the file to initialize the mongod replica set
template
:
src=repset_init.j2 dest=/tmp/repset_init.js
when
:
mongo_clustered
is defined
when
:
MONGO_CLUSTERED
is defined
-
name
:
mongo | Initialize the replication set
shell
:
/usr/bin/mongo /tmp/repset_init.js
when
:
mongo_clusterd
is defined
when
:
MONGO_CLUSTERED
is defined
# Ignoring errors here because slave instances will fail this command
# since slaveOk is false in ansible 1.3.
...
...
playbooks/roles/mongo/templates/mongodb.conf.j2
View file @
73f68f37
...
...
@@ -15,7 +15,7 @@ bind_ip = {{ mongo_bind_ip }}
# Enable journaling, http://www.mongodb.org/display/DOCS/Journaling
journal=true
{% if
mongo_clustered
is defined %}
{% if
MONGO_CLUSTERED
is defined %}
keyFile = {{ mongo_key_file }}
replSet = {{ mongo_repl_set }}
{% endif %}
...
...
playbooks/roles/rabbitmq/defaults/main.yml
View file @
73f68f37
...
...
@@ -26,6 +26,8 @@ RABBIT_USERS:
-
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 @
73f68f37
...
...
@@ -2,7 +2,7 @@
and also a rabbitmq machine.
#}
{%- if
rabbitmq_clustered_hosts|length == 0
-%}
{%- if
RABBITMQ_CLUSTERED is defined
-%}
{%- set hosts= [] -%}
{%- for name in group_names -%}
{%- if name.startswith(rabbitmq_aws_stack_name) -%}
...
...
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