aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-09-27 15:49:39 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-09-27 15:49:39 -0300
commit2ab6bcb0734660fd55ab4044c597e0d4d933f776 (patch)
treec6b5a7dac746a634e8f61a247d241fbb4599fafe
parent787750ef95ce11251c6e708b0d7de7e12ada28b6 (diff)
downloadhydra-2ab6bcb0734660fd55ab4044c597e0d4d933f776.tar.gz
hydra-2ab6bcb0734660fd55ab4044c597e0d4d933f776.tar.bz2
Initialize all modules on hydra module-add
-rwxr-xr-xshare/hydra/module-add4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/hydra/module-add b/share/hydra/module-add
index 5e0748b..1bc8cb1 100755
--- a/share/hydra/module-add
+++ b/share/hydra/module-add
@@ -23,6 +23,7 @@ hydra_config_load
# Parameters
DOMAIN="`facter domain`"
+# Add a module
function hydra_module_add {
# Command line arguments
MODULE="$1"
@@ -50,8 +51,11 @@ function hydra_module_add {
( cd $PUPPET; git push )
}
+# Main loop
for module in $*; do
echo "Adding module $module at puppet repository..."
hydra_module_add $module
done
+# Initialize everything
+( cd $PUPPET ; git submodule update --init --recursive )