Commit ac36b37f by John Jarvis

using edx pypy mirror for edxapp and common

parent 60466be4
...@@ -8,3 +8,4 @@ common_debian_pkgs: ...@@ -8,3 +8,4 @@ common_debian_pkgs:
- tree - tree
- git - git
- unzip - unzip
common_pip_index_url: 'https://pypy.edx.org/root/pypi/+simple/'
...@@ -11,13 +11,19 @@ ...@@ -11,13 +11,19 @@
- install - install
- name: common | pip install virtualenv - name: common | pip install virtualenv
pip: name=virtualenv state=present pip: >
name=virtualenv
state=present
extra_args="-i {{ common_pip_index_url }}"
tags: tags:
- venv_base - venv_base
- install - install
- name: common | pip install virtualenvwrapper - name: common | pip install virtualenvwrapper
pip: name=virtualenvwrapper state=present pip: >
name=virtualenvwrapper
state=present
extra_args="-i {{ common_pip_index_url }}"
tags: tags:
- venv_base - venv_base
- install - install
...@@ -35,7 +41,11 @@ ...@@ -35,7 +41,11 @@
- install - install
- name: common | pip install gunicorn - name: common | pip install gunicorn
pip: name=gunicorn virtualenv="{{venv_dir}}" state=present pip: >
name=gunicorn
virtualenv="{{venv_dir}}"
state=present
extra_args="-i {{ common_pip_index_url }}"
tags: tags:
- gunicorn - gunicorn
- install - install
...@@ -108,7 +108,11 @@ ...@@ -108,7 +108,11 @@
# Install the python pre requirements into {{ venv_dir }} # Install the python pre requirements into {{ venv_dir }}
- name : install python pre-requirements - name : install python pre-requirements
pip: requirements="{{pre_requirements_file}}" virtualenv="{{venv_dir}}" state=present pip: >
requirements="{{pre_requirements_file}}"
virtualenv="{{venv_dir}}"
state=present
extra_args="-i {{ common_pip_index_url }}"
tags: tags:
- lms - lms
- cms - cms
...@@ -120,7 +124,7 @@ ...@@ -120,7 +124,7 @@
# Need to use shell rather than pip so that we can maintain the context of our current working directory; some # Need to use shell rather than pip so that we can maintain the context of our current working directory; some
# requirements are pathed relative to the edx-platform repo. Using the pip from inside the virtual environment implicitly # requirements are pathed relative to the edx-platform repo. Using the pip from inside the virtual environment implicitly
# installs everything into that virtual environment. # installs everything into that virtual environment.
shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install --exists-action w --use-mirrors -r {{ base_requirements_file }} shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -i {{ common_pip_index_url }} --exists-action w --use-mirrors -r {{ base_requirements_file }}
tags: tags:
- lms - lms
- cms - cms
...@@ -129,7 +133,11 @@ ...@@ -129,7 +133,11 @@
# Install the python post requirements into {{ venv_dir }} # Install the python post requirements into {{ venv_dir }}
- name : install python post-requirements - name : install python post-requirements
pip: requirements="{{post_requirements_file}}" virtualenv="{{venv_dir}}" state=present pip: >
requirements="{{post_requirements_file}}"
virtualenv="{{venv_dir}}"
state=present
extra_args="-i {{ common_pip_index_url }}"
tags: tags:
- lms - lms
- cms - cms
...@@ -141,7 +149,7 @@ ...@@ -141,7 +149,7 @@
# Need to use shell rather than pip so that we can maintain the context of our current working directory; some # Need to use shell rather than pip so that we can maintain the context of our current working directory; some
# requirements are pathed relative to the edx-platform repo. Using the pip from inside the virtual environment implicitly # requirements are pathed relative to the edx-platform repo. Using the pip from inside the virtual environment implicitly
# installs everything into that virtual environment. # installs everything into that virtual environment.
shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install --exists-action w --use-mirrors -r {{ item }} shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -i {{ common_pip_index_url }} --exists-action w --use-mirrors -r {{ item }}
with_items: with_items:
- "{{ repo_requirements_file }}" - "{{ repo_requirements_file }}"
- "{{ github_requirements_file }}" - "{{ github_requirements_file }}"
...@@ -158,7 +166,7 @@ ...@@ -158,7 +166,7 @@
# Need to use shell rather than pip so that we can maintain the context of our current working directory; some # Need to use shell rather than pip so that we can maintain the context of our current working directory; some
# requirements are pathed relative to the edx-platform repo. Using the pip from inside the virtual environment implicitly # requirements are pathed relative to the edx-platform repo. Using the pip from inside the virtual environment implicitly
# installs everything into that virtual environment. # installs everything into that virtual environment.
shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install --exists-action w --use-mirrors -r {{ item }} shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -i {{ common_pip_index_url }} --exists-action w --use-mirrors -r {{ item }}
with_items: with_items:
- "{{ sandbox_base_requirements }}" - "{{ sandbox_base_requirements }}"
- "{{ sandbox_local_requirements }}" - "{{ sandbox_local_requirements }}"
......
...@@ -14,7 +14,11 @@ ...@@ -14,7 +14,11 @@
apt: pkg={{','.join(edxlocal_debian_pkgs)}} install_recommends=yes state=present apt: pkg={{','.join(edxlocal_debian_pkgs)}} install_recommends=yes state=present
- name: edxlocal | install python pymongo for mongo_user ansible module - name: edxlocal | install python pymongo for mongo_user ansible module
pip: name=pymongo state=present version=2.6.3 pip: >
name=pymongo
state=present
version=2.6.3
extra_args="-i {{ common_pip_index_url }}"
- name: edxlocal | create a database for edxapp - name: edxlocal | create a database for edxapp
mysql_db: > mysql_db: >
......
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