Clean up after ourselves when building base boxes
This commit is contained in:
parent
5f42f2b4dd
commit
2c0000b8cc
6 changed files with 25 additions and 2 deletions
|
@ -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}"
|
||||
|
|
|
@ -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}"
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
rootfs=$1
|
||||
|
||||
echo "installing babushka"
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
rootfs=$1
|
||||
|
||||
echo "installing chef"
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
rootfs=$1
|
||||
|
||||
echo "installing puppet"
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
rootfs=$1
|
||||
|
||||
echo "installing salt"
|
||||
|
|
Loading…
Reference in a new issue