Commit 88eeaa08 by Xavier Antoviaque

sandbox-ora: Add xqueue/ORA to sandbox & switch to `virtualenv` role

parent f6781eab
......@@ -35,3 +35,12 @@
rbenv_user_home: "{{ forum_home }}"
rbenv_ruby_version: "{{ forum_ruby_version }}"
- forum
- { role: "xqueue", update_users: True }
- role: virtualenv
virtualenv_user: "edx-ora"
virtualenv_user_home: "/opt/edx-ora"
virtualenv_name: "edx-ora"
- role: ora
ora_user: "edx-ora"
ora_venv_dir: "/opt/edx-ora/virtualenvs/edx-ora"
ease_venv_dir: "/opt/edx-ora/virtualenvs/edx-ora"
......@@ -3,11 +3,6 @@
# - common/tasks/main.yml
# - nginx/tasks/main.yml
---
- name: ora | Change permissions on datadir
file: path={{ora_code_dir}}/../data state=directory owner=www-data group=www-data
tags:
- ora
- name: ora | Create ml_models directory
file: path={{ora_code_dir}}/../ml_models state=directory owner={{ ora_user }} group={{ ora_user }}
tags:
......@@ -45,16 +40,6 @@
tags:
- ora
- name: ora | create the ora virtual environment
file: path={{ ora_venv_dir }} owner=root group=adm mode=2775 state=directory
tags:
- ora
- name: ora | bootstrap the ora virtual environment
command: /usr/local/bin/virtualenv {{ ora_venv_dir }} --distribute creates={{ora_venv_dir}}/bin/activate
tags:
- ora
# Install nginx site
- include: ../../nginx/tasks/nginx_site.yml state=link site_name=ora
......
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