Merge pull request #4 from Ratler/allow-puppet-install
Allow installing puppet modules using the standard method
This commit is contained in:
commit
50b037d19f
|
@ -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