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
25f81653
Commit
25f81653
authored
Oct 30, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mongo_clustered defaults to !!null
parent
01b1bcde
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
playbooks/roles/mongo/tasks/main.yml
+3
-3
playbooks/roles/mongo/templates/mongodb.conf.j2
+1
-1
No files found.
playbooks/roles/mongo/tasks/main.yml
View file @
25f81653
...
...
@@ -46,7 +46,7 @@
mode=0600
owner=mongodb
group=mongodb
when
:
MONGO_CLUSTERED
is defined
when
:
MONGO_CLUSTERED
-
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
-
name
:
mongo | Initialize the replication set
shell
:
/usr/bin/mongo /tmp/repset_init.js
when
:
MONGO_CLUSTERED
is defined
when
:
MONGO_CLUSTERED
# 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 @
25f81653
...
...
@@ -21,7 +21,7 @@ port = {{ mongo_port }}
# Enable journaling, http://www.mongodb.org/display/DOCS/Journaling
journal=true
{% if MONGO_CLUSTERED
is defined
%}
{% if MONGO_CLUSTERED %}
keyFile = {{ mongo_key_file }}
replSet = {{ mongo_repl_set }}
{% 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