fi
# Create bootless repository
- echo "Initializing bootless repository..."
- hydra $HYDRA bootless init
+ if [ ! -d "$BASEDIR/bootless" ]; then
+ echo "Initializing bootless repository..."
+ hydra $HYDRA bootless init
+ fi
# Create puppet repository
- echo "Cloning initial puppet repository..."
- git clone git://git.sarava.org/puppet-bootstrap.git $BASEDIR/puppet
+ if [ ! -d "$BASEDIR/puppet" ]; then
+ echo "Cloning initial puppet repository..."
+ git clone git://git.fluxo.info/puppet-bootstrap.git $BASEDIR/puppet
- # Config puppet
- echo "Configuring puppet repository..."
- hydra_bootstrap_config $BASEDIR/puppet
+ # Config puppet
+ echo "Configuring puppet repository..."
+ hydra_bootstrap_config $BASEDIR/puppet
+ fi
fi
cat<<-EOF
# Validation
if [ -z "$ORIGIN" ]; then
- ORIGIN="git://git.sarava.org/hydra.git"
+ ORIGIN="git://git.fluxo.info/hydra.git"
else
ORIGIN_CONFIG="`hydra $HYDRA config git`"
hydractl puppet-install
if [ ! -d "/etc/puppet/.git" ]; then
- rm -rf /etc/puppet && git clone git://git.sarava.org/puppet-bootstrap /etc/puppet
+ rm -rf /etc/puppet && git clone git://git.fluxo.info/puppet-bootstrap /etc/puppet
hydra_bootstrap_config /etc/puppet
chown -R puppet. /etc/puppet
fi