Commit a8df1341 by John Jarvis

workarounds for 5.5

parent 22ba7b28
......@@ -17,6 +17,7 @@
gather_facts: True
vars:
migrate_db: True
mysql5_workaround: True
ansible_ssh_private_key_file: /var/lib/jenkins/continuous-integration.pem
vars_files:
- "{{ secure_dir }}/vars/edxapp_ref_users.yml"
......
......@@ -257,6 +257,13 @@
- cms
- deploy
# https://code.launchpad.net/~wligtenberg/django-openid-auth/mysql_fix/+merge/22726
# This is necessary for the local mysql5.5, not sure if this fix will ever get merged
# We should never do this in production
- name: mysql5.5 workaround - NOT FOR PRODUCTION
shell: sed -i -e 's/claimed_id = models.TextField(max_length=2047/claimed_id = models.TextField(max_length=254/' /opt/edx/lib/python2.7/site-packages/django_openid_auth/models.py
when: mysql5_workaround is defined
- name: syncdb and migrate
shell: sudo -u www-data SERVICE_VARIANT=lms /opt/edx/bin/django-admin.py syncdb --migrate --noinput --settings=lms.envs.aws --pythonpath=/opt/wwc/edx-platform
when: migrate_db is defined
......
......@@ -3,6 +3,13 @@
# - group_vars/all
# - common/tasks/main.yml
# - nginx/tasks/main.yml
#
# This installs mysql-server-5.5 though
# in production we use mysql-5.1.62.
#
# We could install from source instead:
# http://downloads.mysql.com/archives/mysql-5.1/mysql-5.1.62.tar.gz
#
---
- name: install python-pymongo (req for ansible)
pip: name=pymongo
......
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