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
5ec97225
Commit
5ec97225
authored
Sep 08, 2017
by
Feanil Patel
Committed by
GitHub
Sep 08, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4064 from edx/aali/OPS_2209_upgrade_sandbox_mongo_role
Aali/ops 2209 upgrade sandbox mongo role
parents
854ba162
63a885a0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
8 deletions
+24
-8
playbooks/edx-east/edx_continuous_integration.yml
+1
-1
playbooks/edx-east/edx_provision.yml
+1
-1
playbooks/edx-east/restart_supervisor.yml
+3
-0
playbooks/roles/mongo_3_2/defaults/main.yml
+5
-1
playbooks/roles/mongo_3_2/tasks/main.yml
+12
-3
util/jenkins/ansible-provision.sh
+2
-2
No files found.
playbooks/edx-east/edx_continuous_integration.yml
View file @
5ec97225
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
-
role
:
edxlocal
-
role
:
edxlocal
tags
:
edxlocal
tags
:
edxlocal
-
memcache
-
memcache
-
mongo
-
mongo
_3_2
-
{
role
:
'
edxapp'
,
celery_worker
:
True
}
-
{
role
:
'
edxapp'
,
celery_worker
:
True
}
-
edxapp
-
edxapp
-
testcourses
-
testcourses
...
...
playbooks/edx-east/edx_provision.yml
View file @
5ec97225
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
-
name
:
Wait for cloud-init to finish
-
name
:
Wait for cloud-init to finish
wait_for
:
wait_for
:
path
:
/var/log/cloud-init.log
path
:
/var/log/cloud-init.log
timeout
:
15
timeout
:
15
search_regex
:
"
final-message"
search_regex
:
"
final-message"
-
name
:
gather_facts
-
name
:
gather_facts
setup
:
"
"
setup
:
"
"
...
...
playbooks/edx-east/restart_supervisor.yml
View file @
5ec97225
...
@@ -10,3 +10,6 @@
...
@@ -10,3 +10,6 @@
service
:
service
:
name
:
"
{{
supervisor_service
}}"
name
:
"
{{
supervisor_service
}}"
state
:
restarted
state
:
restarted
register
:
rc
until
:
rc|success
retries
:
5
playbooks/roles/mongo_3_2/defaults/main.yml
View file @
5ec97225
...
@@ -49,10 +49,14 @@ MONGO_BIND_IP: 127.0.0.1
...
@@ -49,10 +49,14 @@ MONGO_BIND_IP: 127.0.0.1
MONGO_REPL_SET
:
"
rs0"
MONGO_REPL_SET
:
"
rs0"
MONGO_AUTH
:
true
MONGO_AUTH
:
true
MONGO_CLUSTER_KEY
:
"
CHANGEME"
# Cluster member configuration
# Cluster member configuration
# Fed directly into mongodb_replica_set module
# Fed directly into mongodb_replica_set module
MONGO_RS_CONFIG
:
MONGO_RS_CONFIG
:
members
:
[]
_id
:
'
{{
MONGO_REPL_SET
}}'
members
:
-
host
:
'
127.0.0.1'
# Storage engine options in 3.2: "mmapv1" or "wiredTiger"
# Storage engine options in 3.2: "mmapv1" or "wiredTiger"
# 3.2 and 3.4 default to wiredTiger
# 3.2 and 3.4 default to wiredTiger
...
...
playbooks/roles/mongo_3_2/tasks/main.yml
View file @
5ec97225
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
# and connect anonymously next.
# and connect anonymously next.
-
name
:
determine if there is a replica set already
-
name
:
determine if there is a replica set already
mongodb_rs_status
:
mongodb_rs_status
:
host
:
"
{{
ansible_
default_ipv4
['address']
}}"
host
:
"
{{
ansible_
lo['ipv4']
['address']
}}"
username
:
"
{{
MONGO_ADMIN_USER
}}"
username
:
"
{{
MONGO_ADMIN_USER
}}"
password
:
"
{{
MONGO_ADMIN_PASSWORD
}}"
password
:
"
{{
MONGO_ADMIN_PASSWORD
}}"
run_once
:
true
run_once
:
true
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
-
name
:
Try checking the replica set with no user/pass in case this is a new box
-
name
:
Try checking the replica set with no user/pass in case this is a new box
mongodb_rs_status
:
mongodb_rs_status
:
host
:
"
{{
ansible_
default_ipv4
['address']
}}"
host
:
"
{{
ansible_
lo['ipv4']
['address']
}}"
run_once
:
true
run_once
:
true
register
:
unauthed_replica_set_already_configured
register
:
unauthed_replica_set_already_configured
when
:
authed_replica_set_already_configured.failed is defined
when
:
authed_replica_set_already_configured.failed is defined
...
@@ -289,7 +289,7 @@
...
@@ -289,7 +289,7 @@
# checking the replica set status until we see a PRIMARY in the results.
# checking the replica set status until we see a PRIMARY in the results.
-
name
:
Wait for the replica set to update and (if needed) elect a primary
-
name
:
Wait for the replica set to update and (if needed) elect a primary
mongodb_rs_status
:
mongodb_rs_status
:
host
:
"
{{
ansible_
default_ipv4
['address']
}}"
host
:
"
{{
ansible_
lo['ipv4']
['address']
}}"
username
:
"
{{
MONGO_ADMIN_USER
}}"
username
:
"
{{
MONGO_ADMIN_USER
}}"
password
:
"
{{
MONGO_ADMIN_PASSWORD
}}"
password
:
"
{{
MONGO_ADMIN_PASSWORD
}}"
register
:
status
register
:
status
...
@@ -319,3 +319,12 @@
...
@@ -319,3 +319,12 @@
-
"
manage"
-
"
manage"
-
"
manage:db"
-
"
manage:db"
-
"
manage:db-replication"
-
"
manage:db-replication"
-
name
:
ensure mongo starts at boot time
service
:
name
:
mongod
enabled
:
yes
tags
:
-
"
manage"
-
"
manage:start"
util/jenkins/ansible-provision.sh
View file @
5ec97225
...
@@ -127,9 +127,9 @@ fi
...
@@ -127,9 +127,9 @@ fi
if
[[
-z
$ami
]]
;
then
if
[[
-z
$ami
]]
;
then
if
[[
$server_type
==
"full_edx_installation"
]]
;
then
if
[[
$server_type
==
"full_edx_installation"
]]
;
then
ami
=
"ami-
c20128d4
"
ami
=
"ami-
dd9d81a6
"
elif
[[
$server_type
==
"ubuntu_16.04"
||
$server_type
==
"full_edx_installation_from_scratch"
]]
;
then
elif
[[
$server_type
==
"ubuntu_16.04"
||
$server_type
==
"full_edx_installation_from_scratch"
]]
;
then
ami
=
"ami-
20631a3
6"
ami
=
"ami-
1d4e7a6
6"
fi
fi
fi
fi
...
...
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