Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update commands based on recent discussion on documentation PR (https://github.com/edx/edx-documentation/pull/1130).

...

7. Run the following roles.

cd /edx/app/edx_ansible/edx_ansible/playbooks

# Run "openstack" role

sudo /edx/app/edx_ansible/venvs/edx_ansible/bin/ansible-playbook -i localhost, -c local -e@/edx/app/edx_ansible/server-vars.yml run-role.yml -e 'role=

...

openstack' -e '

...

edxapp_

...

code_

...

dir=<path to edx-platform directory>'

# Run "edxapp" role

sudo /edx/app/edx_ansible/venvs/edx_ansible/bin/ansible-playbook -i localhost, -c local -e@/edx/app/edx_ansible/server-vars.yml run-role.yml

...

-e 'role=edxapp' -e 'edx_platform_version=<your branch name>'

sudo /edx/app/edx_ansible/venvs/edx_ansible/bin/ansible-playbook -i localhost, -c local -e@/edx/app/edx_ansible/server-vars.yml run-role.yml -e 'celery_worker=True' -e 'role=edxapp' -e '

...

edx_

...

platform_

...

version=<your branch name>'

8. Restart the LMS server.

...

5. Run the following roles .

...

(note that it is not necessary to run the openstack role again if it ran at least once before on a given instance).

sudo /edx/app/edx_ansible/venvs/edx_ansible/bin/ansible-playbook -i localhost, -c local -e@/edx/app/edx_ansible/server-vars.yml run-role.yml -e 'role=xqueueopenstack' -e 'edxedxapp_platformcode_version=<your branch name>'sudo /edx/app/edx_ansible/venvs/edx_ansible/bin/ansible-playbook -i localhost, -c local -e@/edx/app/edx_ansible/server-vars.yml run-role.yml -e 'celery_worker=True' -e 'role=xqueue' -e 'edx_platform_version=<your branch name>dir=<path to edx-platform directory>'

sudo /edx/app/edx_ansible/venvs/edx_ansible/bin/ansible-playbook -i localhost, -c local -e@/edx/app/edx_ansible/server-vars.yml run-role.yml -e 'role=xqueue' -e 'edxapp_code_dir=<path to edx-platform directory>' # Append more settings here if necessary

6. Restart the LMS server.

...

Note: If you set COMMON_OBJECT_STORE_LOG_SYNC: true, you must also define valid values for the ``SWIFTthe SWIFT_LOG_SYNC_*`` variables.  Otherwise, analytics log synchronization will fail.

...