From b8d18d66c16fab25393cecc7868f45a6d4600e76 Mon Sep 17 00:00:00 2001 From: Yifei Xue Date: Wed, 12 Oct 2016 19:28:54 +0800 Subject: Move all the tar packages in compass4nfv repo to deploy ISO JIRA: COMPASS-493 Change-Id: I64c87b50fd88bf193a502568986f560fc2a144f6 Signed-off-by: Yifei Xue (cherry picked from commit 590c421a0ca417820cc2316a08184e116b3e6a74) --- .../openstack_mitaka_xenial/roles/swift/tasks/swift.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/swift.yml') diff --git a/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/swift.yml b/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/swift.yml index 4e2651a7..10a513f0 100644 --- a/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/swift.yml +++ b/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/swift.yml @@ -9,6 +9,10 @@ --- - include_vars: "{{ ansible_os_family }}.yml" +- name: get image http server + shell: awk -F'=' '/compass_server/ {print $2}' /etc/compass.conf + register: http_server + - include: swift-controller1.yml when: inventory_hostname in groups['controller'] @@ -42,8 +46,14 @@ - rsync when: inventory_hostname in groups['compute'] -- name: upload swift lib - unarchive: src=swift-lib.tar.gz dest=/tmp/ +#- name: upload swift lib +# unarchive: src=swift-lib.tar.gz dest=/tmp/ + +- name: download swift lib package + get_url: url="http://{{ http_server.stdout_lines[0] }}/packages/moon/{{ swift_lib }}" dest=/tmp/ + +- name: unarchive swift lib + command: su -s /bin/sh -c "tar xvf /tmp/{{ swift_lib }} -C /tmp/" - name: copy swift lib command: su -s /bin/sh -c "cp /tmp/swift-lib/* /usr/lib/" -- cgit 1.2.3-korg