Clean up after ourselves when building base boxes

This commit is contained in:
Fabio Rehm 2013-09-20 23:13:30 -03:00
parent 5f42f2b4dd
commit 2c0000b8cc
6 changed files with 25 additions and 2 deletions

View file

@ -157,4 +157,11 @@ sed -i "s/<TODAY>/${NOW}/" metadata.json
# Vagrant box!
tar -czf $PKG ./*
echo "The base box was built successfully to ${WORKING_DIR}/${PKG}"
chmod +rw ${WORKING_DIR}/${PKG}
mkdir -p ${CWD}/output
mv ${WORKING_DIR}/${PKG} ${CWD}/output
# Clean up after ourselves
rm -rf ${WORKING_DIR}
echo "The base box was built successfully to ${CWD}/output/${PKG}"

View file

@ -140,4 +140,12 @@ sed -i "s/<TODAY>/${NOW}/" metadata.json
# Vagrant box!
tar -czf $PKG ./*
echo "The base box was built successfully to ${WORKING_DIR}/${PKG}"
chmod +rw ${WORKING_DIR}/${PKG}
mkdir -p ${CWD}/output
mv ${WORKING_DIR}/${PKG} ${CWD}/output
# Clean up after ourselves
rm -rf ${WORKING_DIR}
lxc-destroy -n ${RELEASE}-base
echo "The base box was built successfully to ${CWD}/output/${PKG}"

View file

@ -1,5 +1,7 @@
#!/bin/bash
set -e
rootfs=$1
echo "installing babushka"

View file

@ -1,5 +1,7 @@
#!/bin/bash
set -e
rootfs=$1
echo "installing chef"

View file

@ -1,5 +1,7 @@
#!/bin/bash
set -e
rootfs=$1
echo "installing puppet"

View file

@ -1,5 +1,7 @@
#!/bin/bash
set -e
rootfs=$1
echo "installing salt"