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
cc183f75
Commit
cc183f75
authored
Sep 11, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add option for syncdb
parent
f4e663a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletions
+18
-1
playbooks/edx-east/edxapp_migrate.yml
+13
-1
util/jenkins/check-migrations.sh
+5
-0
No files found.
playbooks/edx-east/edxapp_migrate.yml
View file @
cc183f75
...
...
@@ -4,9 +4,10 @@
gather_facts
:
False
vars
:
db_dry_run
:
"
--db-dry-run"
syncdb
:
false
tasks
:
# Syncdb with migrate when the migrate user is overridden in extra vars
-
name
:
syncdb and
migrate
-
name
:
migrate
shell
:
>
chdir={{ edxapp_code_dir }}
python manage.py {{ item }} migrate --noinput {{ db_dry_run }} --settings=aws_migrate
...
...
@@ -16,3 +17,14 @@
with_items
:
-
lms
-
cms
-
name
:
syncdb
shell
:
>
chdir={{ edxapp_code_dir }}
python manage.py {{ item }} syncdb --noinput --settings=aws_migrate
environment
:
DB_MIGRATION_USER
:
"
{{
COMMON_MYSQL_MIGRATE_USER
}}"
DB_MIGRATION_PASS
:
"
{{
COMMON_MYSQL_MIGRATE_PASS
}}"
when
:
syncdb
with_items
:
-
lms
-
cms
util/jenkins/check-migrations.sh
View file @
cc183f75
...
...
@@ -33,7 +33,11 @@ if [[ $db_dry_run == "false" ]]; then
# Set this to an empty string if db_dry_run is
# not set. By default the db_dry_run var is
# set to --db-dry-run
extra_var_args+
=
" -e db_dry_run=''"
else
# always skip syncdb unless dry run is unchecked
syncdb
=
"false"
fi
if
[[
-f
${
WORKSPACE
}
/configuration-secure/ansible/vars/
${
environment
}
-
${
deployment
}
.yml
]]
;
then
...
...
@@ -47,6 +51,7 @@ done
extra_var_args+
=
" -e edxapp_app_dir=
${
WORKSPACE
}
"
extra_var_args+
=
" -e edxapp_code_dir=
${
WORKSPACE
}
/edx-platform"
extra_var_args+
=
" -e edxapp_user=jenkins"
extra_var_args+
=
" -e syncdb=
$syncdb
"
# Generate the json configuration files
ansible-playbook
-c
local
$extra_var_args
--tags
edxapp_cfg
-i
localhost,
-s
-U
jenkins edxapp.yml
...
...
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