summaryrefslogtreecommitdiff
path: root/global/pre-tasks.d
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2013-09-03 11:31:05 +0200
committerLeif Johansson <leifj@sunet.se>2013-09-03 11:31:05 +0200
commitb71aac9793dfb1f54b4568c3feeafd7a4d0b5919 (patch)
treef1db3ad5da66c023e351d86a31bb78435940d948 /global/pre-tasks.d
parent311d525f6f6fa1f4e31b69fa6fa072419e1d102d (diff)
move package install to post-tasks before puppet
Diffstat (limited to 'global/pre-tasks.d')
-rwxr-xr-xglobal/pre-tasks.d/030puppet15
1 files changed, 0 insertions, 15 deletions
diff --git a/global/pre-tasks.d/030puppet b/global/pre-tasks.d/030puppet
index 2dc0b80..cdc9989 100755
--- a/global/pre-tasks.d/030puppet
+++ b/global/pre-tasks.d/030puppet
@@ -18,18 +18,3 @@ if ! test -f $stamp -a -f /usr/bin/puppet; then
mkdir -p `dirname $stamp`
touch $stamp
fi
-
-python -c "import yaml" 2>/dev/null || apt-get -y install python-yaml
-
-if [ -f /etc/puppet/cosmos-modules.conf ]; then
- grep -E -v "^#" /etc/puppet/cosmos-modules.conf | (
- cd /etc/puppet/modules && while read module src update; do
- if [ ! -d /etc/puppet/modules/$module ]; then
- echo $src | grep -q "://" && git clone $src $module || puppet module install $src
- else
- if [ "x$update" = "xyes" ]; then
- echo $src | grep -q "://" && (cd /etc/puppet/modules/$module && git pull -q) || puppet module upgrade $src
- fi
- fi
- done)
-fi