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.
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