From a90fc16a988cd5eb53de383d0830648f758edaff Mon Sep 17 00:00:00 2001 From: Dan Radez Date: Mon, 4 Jan 2016 15:49:26 -0500 Subject: updating vm creation for virt deployment - replacing brbm with logical names br-netname - replacing instack-virt-setup with tripleo scripts JIRA: APEX-90, APEX-80 Change-Id: I58a15dee8de882e034c8af8a3368ca0647741b13 Signed-off-by: Dan Radez --- build/overcloud-onos.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 build/overcloud-onos.sh (limited to 'build/overcloud-onos.sh') diff --git a/build/overcloud-onos.sh b/build/overcloud-onos.sh new file mode 100755 index 00000000..88f0b166 --- /dev/null +++ b/build/overcloud-onos.sh @@ -0,0 +1,40 @@ +#!/bin/sh +############################################################################## +# Copyright (c) 2015 Tim Rozet (Red Hat), Dan Radez (Red Hat) 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 +############################################################################## +set -e +source ./cache.sh +source ./variables.sh + +pushd images > /dev/null +cp -f overcloud-full.qcow2 overcloud-full-onos_build.qcow2 + +####################################### +##### Adding ONOS to overcloud ##### +####################################### + +# upload the onos puppet module +rm -rf puppet-onos +git clone https://github.com/bobzhouHW/puppet-onos.git +pushd puppet-onos > /dev/null + +# download jdk, onos and maven dependancy packages. +pushd files +for i in jdk-8u51-linux-x64.tar.gz onos-1.3.0.tar.gz repository.tar; do + populate_cache ${onos_artifacts_uri}/$i + get_cached_file $i +done +popd > /dev/null + +popd > /dev/null +tar --xform="s:puppet-onos/:onos/:" -czf puppet-onos.tar.gz puppet-onos + +LIBGUESTFS_BACKEND=direct virt-customize --upload puppet-onos.tar.gz:/etc/puppet/modules/ \ + --run-command "cd /etc/puppet/modules/ && tar xzf puppet-onos.tar.gz" -a overcloud-full-onos_build.qcow2 +mv overcloud-full-onos_build.qcow2 overcloud-full-onos.qcow2 +popd > /dev/null -- cgit 1.2.3-korg