Allow installing puppet modules using the standard method

This commit is contained in:
Stefan Wold 2014-02-24 08:13:53 +01:00
parent 31772848b3
commit 5c171118c1

View file

@ -39,6 +39,15 @@ if [ -f $CONFIG ]; then
echo "ERROR: Ignoring non-git repository"
continue
fi
elif [[ "$src" =~ .*:// ]]; then
echo "ERROR: Don't know how to install '$src'"
continue
else
if [ ! -d /etc/puppet/modules/$module ]; then
puppet module install $src
elif [ "$update" = "yes" ]; then
puppet module upgrade $src
fi
fi
done
)