summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xglobal/post-tasks.d/018packages9
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
)