9ed14ce1b3
Change-Id: I814667283ccfc6ebd7c16d961270f688e9fb9c4c
14 lines
308 B
Bash
Executable File
14 lines
308 B
Bash
Executable File
#!/bin/sh
|
|
# remove all external puppet modules
|
|
|
|
dir=`dirname $0`
|
|
cd "${dir}" || exit 1
|
|
|
|
cat Puppetfile | grep "^mod '" | awk -F "'" '{ print $2 }' | while read module; do
|
|
if [ -d "puppet/${module}" ]; then
|
|
echo "Remove: puppet/${module}"
|
|
rm -rf "puppet/${module}"
|
|
fi
|
|
done
|
|
rm -f 'Puppetfile.lock'
|