summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2016-11-18 02:56:28 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2016-11-25 02:24:35 +0800
commit97feef8d0a2b10924764b0cb1a31057b69a46103 (patch)
treef796b408508ec0fc2002e2e8a9c416324c52b455 /deploy
parentb15421ac53b8f57011613e29505cd8c0275b5066 (diff)
update pip and split pip source
JIRA: COMPASS-506 update pip to 9.0.1 in ansible common adjust pip download source to http://10.1.0.12/pip-openstack Change-Id: I043d199faf57342f89e46bc9d90229ed40c510f0 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy')
-rw-r--r--deploy/adapters/ansible/openstack_newton_xenial/roles/common/templates/pip.conf5
-rw-r--r--deploy/adapters/ansible/roles/common/tasks/main.yml3
2 files changed, 8 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/openstack_newton_xenial/roles/common/templates/pip.conf b/deploy/adapters/ansible/openstack_newton_xenial/roles/common/templates/pip.conf
new file mode 100644
index 00000000..59981258
--- /dev/null
+++ b/deploy/adapters/ansible/openstack_newton_xenial/roles/common/templates/pip.conf
@@ -0,0 +1,5 @@
+[global]
+find-links = http://{{ COMPASS_SERVER.stdout_lines[0] }}/pip-openstack
+no-index = true
+[install]
+trusted-host={{ COMPASS_SERVER.stdout_lines[0] }}
diff --git a/deploy/adapters/ansible/roles/common/tasks/main.yml b/deploy/adapters/ansible/roles/common/tasks/main.yml
index f004e98d..8da5603c 100644
--- a/deploy/adapters/ansible/roles/common/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/common/tasks/main.yml
@@ -46,6 +46,9 @@
- name: make config template dir exist
file: path=/opt/os_templates state=directory mode=0755
+- name: upgrade pip
+ pip: name=pip state=latest
+
- name: create pip config directory
file: path=~/.pip state=directory