diff options
author | Leif Johansson <leifj@sunet.se> | 2014-02-26 00:07:28 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2014-02-26 00:07:28 +0100 |
commit | 50b037d19ff32716e25fbde89aa34adf52cb9395 (patch) | |
tree | fcb298e5680eae8c152bf64def157c638d934256 /global | |
parent | c53ebe1d41624f2ea876d193bbb3b89173838dc0 (diff) | |
parent | 5c171118c151c9724b1576017da02a93a350c5ae (diff) |
Merge pull request #4 from Ratler/allow-puppet-install
Allow installing puppet modules using the standard method
Diffstat (limited to 'global')
-rwxr-xr-x | global/post-tasks.d/018packages | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/global/post-tasks.d/018packages b/global/post-tasks.d/018packages index bf7bf64..cc5856e 100755 --- a/global/post-tasks.d/018packages +++ b/global/post-tasks.d/018packages @@ -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 ) |