Commit 768d4d89 by John Jarvis

renaming PYPI_MIRROR to PYPI_MIRROR_URL

parent 834887f5
...@@ -18,5 +18,7 @@ secure_dir: 'secure_example' ...@@ -18,5 +18,7 @@ secure_dir: 'secure_example'
# this indicates the path to site-specific (with precedence) # this indicates the path to site-specific (with precedence)
# things like nginx template files # things like nginx template files
local_dir: '../../ansible_local' local_dir: '../../ansible_local'
PYPI_MIRROR: 'https://pypi.python.org/simple' # include http/https
GIT_MIRROR: 'https://github.com' PYPI_MIRROR_URL: 'https://pypi.python.org/simple'
# do not include http/https
GIT_MIRROR: 'github.com'
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
pip: > pip: >
name=virtualenv name=virtualenv
state=present state=present
extra_args="-i {{ PYPI_MIRROR }}" extra_args="-i {{ PYPI_MIRROR_URL }}"
tags: tags:
- venv_base - venv_base
- install - install
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
pip: > pip: >
name=virtualenvwrapper name=virtualenvwrapper
state=present state=present
extra_args="-i {{ PYPI_MIRROR }}" extra_args="-i {{ PYPI_MIRROR_URL }}"
tags: tags:
- venv_base - venv_base
- install - install
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
name=gunicorn name=gunicorn
virtualenv="{{venv_dir}}" virtualenv="{{venv_dir}}"
state=present state=present
extra_args="-i {{ PYPI_MIRROR }}" extra_args="-i {{ PYPI_MIRROR_URL }}"
tags: tags:
- gunicorn - gunicorn
- install - install
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
requirements="{{pre_requirements_file}}" requirements="{{pre_requirements_file}}"
virtualenv="{{venv_dir}}" virtualenv="{{venv_dir}}"
state=present state=present
extra_args="-i {{ PYPI_MIRROR }}" extra_args="-i {{ PYPI_MIRROR_URL }}"
tags: tags:
- lms - lms
- cms - cms
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,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 -i {{ PYPI_MIRROR }} --exists-action w --use-mirrors -r {{ base_requirements_file }} shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -i {{ PYPI_MIRROR_URL }} --exists-action w --use-mirrors -r {{ base_requirements_file }}
tags: tags:
- lms - lms
- cms - cms
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
requirements="{{post_requirements_file}}" requirements="{{post_requirements_file}}"
virtualenv="{{venv_dir}}" virtualenv="{{venv_dir}}"
state=present state=present
extra_args="-i {{ PYPI_MIRROR }}" extra_args="-i {{ PYPI_MIRROR_URL }}"
tags: tags:
- lms - lms
- cms - cms
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,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 -i {{ PYPI_MIRROR }} --exists-action w --use-mirrors -r {{ item }} shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -i {{ PYPI_MIRROR_URL }} --exists-action w --use-mirrors -r {{ item }}
with_items: with_items:
- "{{ repo_requirements_file }}" - "{{ repo_requirements_file }}"
- "{{ github_requirements_file }}" - "{{ github_requirements_file }}"
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,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 -i {{ PYPI_MIRROR }} --exists-action w --use-mirrors -r {{ item }} shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -i {{ PYPI_MIRROR_URL }} --exists-action w --use-mirrors -r {{ item }}
with_items: with_items:
- "{{ sandbox_base_requirements }}" - "{{ sandbox_base_requirements }}"
- "{{ sandbox_local_requirements }}" - "{{ sandbox_local_requirements }}"
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
name=pymongo name=pymongo
state=present state=present
version=2.6.3 version=2.6.3
extra_args="-i {{ PYPI_MIRROR }}" extra_args="-i {{ PYPI_MIRROR_URL }}"
- name: edxlocal | create a database for edxapp - name: edxlocal | create a database for edxapp
mysql_db: > mysql_db: >
......
...@@ -48,7 +48,7 @@ ora_version: $ora_version ...@@ -48,7 +48,7 @@ ora_version: $ora_version
ease_version: $ease_version ease_version: $ease_version
ansible_ssh_private_key_file: /var/lib/jenkins/${keypair}.pem ansible_ssh_private_key_file: /var/lib/jenkins/${keypair}.pem
PYPI_MIRROR: 'https://pypi.edx.org/root/pypi/+simple/' PYPI_MIRROR_URL: 'https://pypi.edx.org/root/pypi/+simple/'
EOF EOF
cat $extra_vars cat $extra_vars
......
...@@ -79,7 +79,7 @@ region: $region ...@@ -79,7 +79,7 @@ region: $region
instance_tags: '{"environment": "$environment", "github_username": "$github_username", "Name": "$name_tag", "source": "jenkins", "owner": "$BUILD_USER"}' instance_tags: '{"environment": "$environment", "github_username": "$github_username", "Name": "$name_tag", "source": "jenkins", "owner": "$BUILD_USER"}'
root_ebs_size: $root_ebs_size root_ebs_size: $root_ebs_size
name_tag: $name_tag name_tag: $name_tag
PYPI_MIRROR: 'https://pypi.edx.org/root/pypi/+simple/' PYPI_MIRROR_URL: 'https://pypi.edx.org/root/pypi/+simple/'
gh_users: gh_users:
- user: jarv - user: jarv
groups: groups:
......
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