Commit 63a97e29 by John Jarvis

moving pip_index_url to group_vars

parent c76bc70e
......@@ -18,3 +18,4 @@ secure_dir: 'secure_example'
# this indicates the path to site-specific (with precedence)
# things like nginx template files
local_dir: '../../ansible_local'
pip_index_url: 'https://pypi.python.org/simple'
......@@ -8,4 +8,3 @@ common_debian_pkgs:
- tree
- git
- unzip
common_pip_index_url: 'https://pypy.edx.org/root/pypi/+simple/'
......@@ -14,7 +14,7 @@
pip: >
name=virtualenv
state=present
extra_args="-i {{ common_pip_index_url }}"
extra_args="-i {{ pip_index_url }}"
tags:
- venv_base
- install
......@@ -23,7 +23,7 @@
pip: >
name=virtualenvwrapper
state=present
extra_args="-i {{ common_pip_index_url }}"
extra_args="-i {{ pip_index_url }}"
tags:
- venv_base
- install
......@@ -45,7 +45,7 @@
name=gunicorn
virtualenv="{{venv_dir}}"
state=present
extra_args="-i {{ common_pip_index_url }}"
extra_args="-i {{ pip_index_url }}"
tags:
- gunicorn
- install
......@@ -112,7 +112,7 @@
requirements="{{pre_requirements_file}}"
virtualenv="{{venv_dir}}"
state=present
extra_args="-i {{ common_pip_index_url }}"
extra_args="-i {{ pip_index_url }}"
tags:
- lms
- cms
......@@ -124,7 +124,7 @@
# 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
# installs everything into that virtual environment.
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 }}
shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -i {{ pip_index_url }} --exists-action w --use-mirrors -r {{ base_requirements_file }}
tags:
- lms
- cms
......@@ -137,7 +137,7 @@
requirements="{{post_requirements_file}}"
virtualenv="{{venv_dir}}"
state=present
extra_args="-i {{ common_pip_index_url }}"
extra_args="-i {{ pip_index_url }}"
tags:
- lms
- cms
......@@ -149,7 +149,7 @@
# 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
# installs everything into that virtual environment.
shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -i {{ common_pip_index_url }} --exists-action w --use-mirrors -r {{ item }}
shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -i {{ pip_index_url }} --exists-action w --use-mirrors -r {{ item }}
with_items:
- "{{ repo_requirements_file }}"
- "{{ github_requirements_file }}"
......@@ -166,7 +166,7 @@
# 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
# installs everything into that virtual environment.
shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -i {{ common_pip_index_url }} --exists-action w --use-mirrors -r {{ item }}
shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -i {{ pip_index_url }} --exists-action w --use-mirrors -r {{ item }}
with_items:
- "{{ sandbox_base_requirements }}"
- "{{ sandbox_local_requirements }}"
......
......@@ -18,7 +18,7 @@
name=pymongo
state=present
version=2.6.3
extra_args="-i {{ common_pip_index_url }}"
extra_args="-i {{ pip_index_url }}"
- name: edxlocal | create a database for edxapp
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