From 97feef8d0a2b10924764b0cb1a31057b69a46103 Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Fri, 18 Nov 2016 02:56:28 +0800 Subject: 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 --- .../ansible/openstack_newton_xenial/roles/common/templates/pip.conf | 5 +++++ deploy/adapters/ansible/roles/common/tasks/main.yml | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 deploy/adapters/ansible/openstack_newton_xenial/roles/common/templates/pip.conf (limited to 'deploy') 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 -- cgit 1.2.3-korg