Merge pull request #4 from Ratler/allow-puppet-install

Allow installing puppet modules using the standard method
This commit is contained in:
Leif Johansson 2014-02-26 00:07:28 +01:00
commit 50b037d19f

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
)