]> gitweb.fluxo.info Git - hydra.git/commitdiff
Create config and doc repositories
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 27 Feb 2014 21:41:16 +0000 (18:41 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 27 Feb 2014 21:41:16 +0000 (18:41 -0300)
README
share/hydra/init

diff --git a/README b/README
index b01c655fa584bfa614e5889b40f6e69a2e24204c..ab107b2830eaaf7fe62eb4ca5b0649f24c7cc6fc 100644 (file)
--- a/README
+++ b/README
@@ -4,15 +4,15 @@ Hydra Process Command Tool
 This suite is made of three commands:
 
   - hydractl: issues commands in the current host.
-  - hydra: issues commands on multiple hosts.
-  - hydras: issues commands to multiple sets of hosts.
+  - hydra:    issues commands on multiple hosts.
+  - hydras:   issues commands to multiple sets of hosts.
 
 TODO
 ----
 
 Hydra:
 
-  - Init: create config repository.
+  - Init: create config and doc repositories.
   - Init: generate puppet repository using "hydractl bootstrap repository"
   - Sync: clone hydra configuration repository that should be created by the new init action.
   - Sync: split between public and private repositories.
index 5ac6f82f69d9fc3c7b69e3fa8faf4577d2eb22f9..ad2f0653c522a1c2e1296aa9dee2c91b333727b9 100755 (executable)
@@ -46,6 +46,25 @@ echo "$HYDRA=\"$BASEDIR\"" >> $CONFIG
 if [ ! -z "$REMOTE" ]; then
   echo "Using $REMOTE as private gitolite address."
   echo "PRIVATE_REPOS=$REMOTE" >> $PREFERENCES
+else
+  # TODO: setup remotes and README content
+  # No remote was given, so we assume this is a shiny new hydra!
+  mkdir $BASEDIR/{config,doc}
+  (
+    cd $BASEDIR/config
+    touch README.md
+    git init
+    git add .
+    git commit -m "Initial import"
+  )
+
+  (
+    cd $BASEDIR/doc
+    touch README.md
+    git init
+    git add .
+    git commit -m "Initial import"
+  )
 fi
 
 # Sync repositories