Skip to content
Snippets Groups Projects
Commit 7edb1125 authored by Jan-Michael Löhlein's avatar Jan-Michael Löhlein
Browse files

Provide pip profile to ensure pip does not run into firewall.

parent 346a77b8
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,16 @@ deploy_venv_directory: ...@@ -26,6 +26,16 @@ deploy_venv_directory:
- require: - require:
- group: virtualenv - group: virtualenv
deploy_venv_pip_profile:
file.managed:
- name: /etc/profile.d/pip.sh
- user: root
- group: root
- mode: 644
- contents: |
export PIP_TRUSTED_HOST='apt-proxy.it.hs-hannover.de'
export PIP_INDEX_URL='http://apt-proxy.it.hs-hannover.de:3141/root/pypi/+simple/'
{% for project_name, project_config in deploy.projects.items() if project_config.get('venv', False) %} {% for project_name, project_config in deploy.projects.items() if project_config.get('venv', False) %}
{% set venv_config = project_config.venv %} {% set venv_config = project_config.venv %}
...@@ -46,8 +56,6 @@ upgrade_pip_in_{{ project_name }}_venv: ...@@ -46,8 +56,6 @@ upgrade_pip_in_{{ project_name }}_venv:
LANG: en_US.UTF-8 LANG: en_US.UTF-8
LC_CTYPE: en_US.UTF-8 LC_CTYPE: en_US.UTF-8
LC_ALL: en_US.UTF-8 LC_ALL: en_US.UTF-8
PIP_TRUSTED_HOST: 'apt-proxy.it.hs-hannover.de'
PIP_INDEX_URL: 'http://apt-proxy.it.hs-hannover.de:3141/root/pypi/+simple/'
- require: - require:
- cmd: create_{{ project_name }}_venv - cmd: create_{{ project_name }}_venv
...@@ -59,8 +67,6 @@ install_requirements_in_{{ project_name }}_venv: ...@@ -59,8 +67,6 @@ install_requirements_in_{{ project_name }}_venv:
LANG: en_US.UTF-8 LANG: en_US.UTF-8
LC_CTYPE: en_US.UTF-8 LC_CTYPE: en_US.UTF-8
LC_ALL: en_US.UTF-8 LC_ALL: en_US.UTF-8
PIP_TRUSTED_HOST: 'apt-proxy.it.hs-hannover.de'
PIP_INDEX_URL: 'http://apt-proxy.it.hs-hannover.de:3141/root/pypi/+simple/'
- require: - require:
- cmd: upgrade_pip_in_{{ project_name }}_venv - cmd: upgrade_pip_in_{{ project_name }}_venv
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment