diff options
author | Justin chi <chigang@huawei.com> | 2017-10-16 11:36:41 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-10-16 11:36:41 +0000 |
commit | d8f5f4a460d4c84a6552a6bed8af5c7fa5eedc22 (patch) | |
tree | c338a6e4301b1a5e31982f822fa32b70950cecb3 /deploy/adapters/ansible/roles | |
parent | 459a5920eb4deec0bee0c78c223b53615b1edc68 (diff) | |
parent | 05aafa14c76537222fac2f93fc6ab7bec741cff5 (diff) |
Merge "Ascertain the pandas version"
Diffstat (limited to 'deploy/adapters/ansible/roles')
3 files changed, 27 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml index 139b426f..d3779fd4 100755 --- a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml +++ b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml @@ -252,3 +252,14 @@ include: noha.yml when: - "{{ hostvars[inventory_hostname]['groups']['controller'] | length < 2 }}" + +- name: copy the repo_fix_andas.yml + template: + src: repo_fix_pandas.yml + dest: /etc/ansible/roles/repo_build/tasks/repo_fix_pandas.yml + +- name: change repore build + lineinfile: + dest: /etc/ansible/roles/repo_build/tasks/main.yml + insertafter: "^- include: repo_post_build.yml" + line: "- include: repo_fix_pandas.yml" diff --git a/deploy/adapters/ansible/roles/config-osa/templates/repo_fix_pandas.yml b/deploy/adapters/ansible/roles/config-osa/templates/repo_fix_pandas.yml new file mode 100644 index 00000000..4605089f --- /dev/null +++ b/deploy/adapters/ansible/roles/config-osa/templates/repo_fix_pandas.yml @@ -0,0 +1,15 @@ +############################################################################## +# Copyright (c) 2017 HUAWEI TECHNOLOGIES CO.,LTD and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## +--- +- name: change pandas version + shell: | + mkdir -p /tmp/pandas; + pip install pandas==0.20.3 -d /tmp/pandas; + rm -rf {{ repo_dest_path }}/pandas* + cp /tmp/pandas/pandas-0.20.3-cp27-cp27mu-manylinux1_x86_64.whl {{ repo_dest_path }} diff --git a/deploy/adapters/ansible/roles/config-osa/vars/main.yml b/deploy/adapters/ansible/roles/config-osa/vars/main.yml index 3c95bc64..18687fa5 100644 --- a/deploy/adapters/ansible/roles/config-osa/vars/main.yml +++ b/deploy/adapters/ansible/roles/config-osa/vars/main.yml @@ -9,3 +9,4 @@ --- LOCAL_REPOSITORY_IP: "192.168.137.222" ceph_host: "{{ hostvars[inventory_hostname]['groups']['ceph_osd'][0] }}" +repo_dest_path: "/var/www/repo/os-releases/15.1.4/ubuntu-16.04-x86_64/" |