aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2016-11-26 06:15:22 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-11-26 06:15:22 +0000
commit265318bd5597ce64b59c3c58c005dc26fa7071a7 (patch)
tree7d43b1b7796e0aa515b5576f57fbabf2e1158cfc /deploy/adapters/ansible
parent300b9658277125e1c57c054e6b0fdb24bda3987a (diff)
parent97feef8d0a2b10924764b0cb1a31057b69a46103 (diff)
Merge "update pip and split pip source"
Diffstat (limited to 'deploy/adapters/ansible')
-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