]> gitweb.fluxo.info Git - hydra.git/commitdiff
Initialize all modules on hydra module-add
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 27 Sep 2014 18:49:39 +0000 (15:49 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 27 Sep 2014 18:49:39 +0000 (15:49 -0300)
share/hydra/module-add

index 5e0748bb1bfa0e776a2b7c43c78c0ee44014004e..1bc8cb137d9746b38cbf7c44c0aa1f10beb29aba 100755 (executable)
@@ -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 )