From 1dc4e57ae38ea5a4989aeb382c3450a26363ead5 Mon Sep 17 00:00:00 2001 From: leonwang Date: Thu, 25 Jan 2018 09:01:40 +0000 Subject: Add nbp-ansible script to deploy opensds northbound plugins In this patch, I created another ansible script to deploy opensds northbound plugins. Since we plan to integrate opensds with k8s using flexvolume, I only add flexvolume role to work on it. But the framework is extensible for adding more roles to integrate with k8s in other ways. Besides, I drafted the installation doc of integrating stor4nfv with k8s in docs directory so that Compass team can work on it more easily. Change-Id: Ifbd6cc38bf1789de0fcb132e6aa3cfcd9072a11b Signed-off-by: leonwang --- ci/nbp-ansible/roles/common/tasks/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ci/nbp-ansible/roles/common/tasks/main.yml (limited to 'ci/nbp-ansible/roles/common/tasks') diff --git a/ci/nbp-ansible/roles/common/tasks/main.yml b/ci/nbp-ansible/roles/common/tasks/main.yml new file mode 100644 index 0000000..b612e24 --- /dev/null +++ b/ci/nbp-ansible/roles/common/tasks/main.yml @@ -0,0 +1,24 @@ +--- +- name: Run the equivalent of "apt-get update" as a separate step + apt: + update_cache: yes + +- name: check for nbp release files existed + stat: + path: "{{ nbp_dir }}" + ignore_errors: yes + register: releasesexisted + +- name: download nbp release files + get_url: + url={{ nbp_download_url }} + dest={{ nbp_tarball_url }} + when: + - releasesexisted.stat.exists is undefined or releasesexisted.stat.exists == false + +- name: extract the nbp release tarball + unarchive: + src={{ nbp_tarball_url }} + dest=/opt/ + when: + - releasesexisted.stat.exists is undefined or releasesexisted.stat.exists == false -- cgit 1.2.3-korg