summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/config-osa/templates
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2017-08-15 11:40:26 +0800
committerYifei Xue <xueyifei@huawei.com>2017-08-31 15:33:56 +0800
commit8c978370a123dccc0b93ee9bd2ba46f8167a2cc2 (patch)
treefe3b398de2de17e5c30ceea456dbe123bc1e6f69 /deploy/adapters/ansible/roles/config-osa/templates
parent760c966b5095fb0cfe0a2ac4014a337531a8df1d (diff)
Support offline deployment for nosdn no feature scenario
JIRA: - Add a repo docker which includes ubuntu PPA and python packages used for offline deployment. Change-Id: Iad9b0df7f33f5a7ab974c5deffb408fc93b3f3ad Signed-off-by: Yifei Xue <xueyifei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/config-osa/templates')
-rw-r--r--deploy/adapters/ansible/roles/config-osa/templates/pip.conf.j229
1 files changed, 29 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/config-osa/templates/pip.conf.j2 b/deploy/adapters/ansible/roles/config-osa/templates/pip.conf.j2
new file mode 100644
index 00000000..15650561
--- /dev/null
+++ b/deploy/adapters/ansible/roles/config-osa/templates/pip.conf.j2
@@ -0,0 +1,29 @@
+# {{ ansible_managed }}
+
+[global]
+{% raw %}
+pre = {{ pip_enable_pre_releases }}
+{% if not pip_lock_to_internal_repo %}
+{% endraw %}
+index-url = http://{{ offline_repo_ip }}:{{ offline_repo_port }}/pip_pkg/simple
+trusted-host = {{ offline_repo_ip }}
+{% raw %}
+{% endif %}
+timeout = {{ pip_timeout }}
+{% if pip_lock_to_internal_repo and pip_links | length > 0 %}
+no-index = true
+trusted-host =
+{% for pip_link in pip_links %}
+ {{ pip_link.link | netloc_no_port }}
+{% endfor %}
+{% endif %}
+
+[install]
+upgrade = {{ pip_upgrade }}
+{% if pip_lock_to_internal_repo and pip_links | length > 0 %}
+find-links =
+{% for pip_link in pip_links %}
+ {{ pip_link.link }}
+{% endfor %}
+{% endif %}
+{% endraw %}