2 ##############################################################################
3 # Copyright (c) 2015 Tim Rozet (Red Hat), Dan Radez (Red Hat) and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
14 pushd images > /dev/null
15 cp -f overcloud-full.qcow2 overcloud-full-onos_build.qcow2
17 #######################################
18 ##### Adding ONOS to overcloud #####
19 #######################################
23 git clone https://github.com/bobzhouHW/puppet-onos.git
24 populate_cache "$onos_release_uri/$onos_release_file"
25 tar --xform="s:puppet-onos/:onos/:" -czf puppet-onos.tar.gz puppet-onos
27 LIBGUESTFS_BACKEND=direct virt-customize --install "java-1.8.0-openjdk" \
28 --upload puppet-onos.tar.gz:/etc/puppet/modules/ \
29 --run-command "cd /etc/puppet/modules/ && tar xzf puppet-onos.tar.gz" \
30 --upload $CACHE_DIR/$onos_release_file:/opt \
31 --run-command "cd /opt && tar xzf $onos_release_file" \
32 -a overcloud-full-onos_build.qcow2
34 mv overcloud-full-onos_build.qcow2 overcloud-full-onos.qcow2