Commit 8f9eec7e by Sven Marnach

Add task to perform migrations needed for Eucalyptus upgrade.

parent 0ec685c4
...@@ -183,3 +183,6 @@ common_close_all_caches: | ...@@ -183,3 +183,6 @@ common_close_all_caches: |
COMMON_TRACKING_LOG_ROTATION: COMMON_TRACKING_LOG_ROTATION:
- size 1M - size 1M
# Indicate that an upgrade to Eucalyptus is in progress
COMMON_EUCALYPTUS_UPGRADE: false
...@@ -125,6 +125,18 @@ ...@@ -125,6 +125,18 @@
tags: tags:
- migrate - migrate
- name: migrate oauth2_provider to edx_oauth2_provider
command: "{{ COMMON_BIN_DIR }}/edxapp-migrate-lms {{ item }}"
when: migrate_db is defined and migrate_db|lower == "yes" and COMMON_MYSQL_MIGRATE_PASS and COMMON_EUCALYPTUS_UPGRADE
environment:
DB_MIGRATION_USER: "{{ COMMON_MYSQL_MIGRATE_USER }}"
DB_MIGRATION_PASS: "{{ COMMON_MYSQL_MIGRATE_PASS }}"
with_items:
- "--fake oauth2_provider zero"
- "--fake-initial"
tags:
- migrate
# There are problems with django collectstatic copying files. It doesn't retain # There are problems with django collectstatic copying files. It doesn't retain
# last modified timestamps, but relies on those same timestamps to know if a new file # last modified timestamps, but relies on those same timestamps to know if a new file
# should be recopied. While collectstatic --clear exists, it only clears some of the # should be recopied. While collectstatic --clear exists, it only clears some of the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment