From 5c171118c151c9724b1576017da02a93a350c5ae Mon Sep 17 00:00:00 2001 From: Stefan Wold Date: Mon, 24 Feb 2014 08:13:53 +0100 Subject: [PATCH] Allow installing puppet modules using the standard method --- global/post-tasks.d/018packages | 9 +++++++++ 1 file changed, 9 insertions(+) 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 )