COMPASS-437 67/16967/1
authorCNlucius <lukai1@huawei.com>
Fri, 15 Jul 2016 10:26:01 +0000 (18:26 +0800)
committerCNlucius <lukai1@huawei.com>
Fri, 15 Jul 2016 10:26:43 +0000 (18:26 +0800)
add install onos related package

Change-Id: I1d2fe3687a1c38fafce4fab61ba2929375d7d0c7
Signed-off-by: CNlucius <lukai1@huawei.com>
deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/tasks/main.yml
deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/vars/main.yml

index c8ce115..e9b985c 100755 (executable)
@@ -9,6 +9,10 @@
 ---
 - include_vars: "{{ ansible_os_family }}.yml"
 
+- name: install onos related packages
+  action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
+  with_items: packages | union(packages_noarch)
+
 - name: remove neutron-plugin-openvswitch-agent auto start
   shell: >
     update-rc.d neutron-plugin-openvswitch-agent remove;
index f11f110..0f6204e 100755 (executable)
@@ -6,6 +6,10 @@
 # which accompanies this distribution, and is available at
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
+---
+packages_noarch: []
+
+services_noarch: []
 onos_pkg_name: onos-1.6.0.tar.gz
 onos_home: /opt/onos/
 karaf_dist: apache-karaf-3.0.5