Allow installing puppet modules using the standard method
This commit is contained in:
parent
31772848b3
commit
5c171118c1
|
@ -39,6 +39,15 @@ if [ -f $CONFIG ]; then
|
||||||
echo "ERROR: Ignoring non-git repository"
|
echo "ERROR: Ignoring non-git repository"
|
||||||
continue
|
continue
|
||||||
fi
|
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
|
fi
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue