update pip and split pip source 91/24491/4
authorHarry Huang <huangxiangyu5@huawei.com>
Thu, 17 Nov 2016 18:56:28 +0000 (02:56 +0800)
committerHarry Huang <huangxiangyu5@huawei.com>
Thu, 24 Nov 2016 18:24:35 +0000 (02:24 +0800)
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>
deploy/adapters/ansible/openstack_newton_xenial/roles/common/templates/pip.conf [new file with mode: 0644]
deploy/adapters/ansible/roles/common/tasks/main.yml

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 (file)
index 0000000..5998125
--- /dev/null
@@ -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] }}
index f004e98..8da5603 100644 (file)
@@ -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