Hydra
-----
- - Init: generate puppet repository using "hydractl bootstrap repository"
- Uniform syntax for specifying nodes (either by hostname or fqdn) on deploy and import-key.
- Provision: wrapper for "hydractl provision" with stores/uses node configuration.
fi
# Create bootless repository
+ echo "Initializing bootless repository..."
hydra $HYDRA bootless init
+
+ # Create puppet repository
+ echo "Cloning initial puppet repository..."
+ git clone git://git.sarava.org/puppet-bootstrap.git $BASEDIR/puppet
+
+ # Config puppet
+ echo "Configuring puppet repository..."
+ ( cd $BASEDIR/puppet && make submodules && make config )
fi
cat<<-EOF
if [ "$STAGE" == "repository" ]; then
hydractl puppet-install
- mkdir -p /etc/puppet/modules
- git clone git://git.sarava.org/puppet-bootstrap /etc/puppet/modules/bootstrap
+ rm -rf /etc/puppet && git clone git://git.sarava.org/puppet-bootstrap /etc/puppet
+ chown -R puppet. /etc/puppet
- echo "Editing /etc/puppet/modules/bootstrap/manifests/config.pp to suit your needs..."
+ echo "Please edit /etc/puppet/manifests/config.pp to suit your needs..."
+ echo "Press any key to continue, Ctrl-C to abort..."
+ read option
$EDITOR /etc/puppet/modules/bootstrap/manifests/config.pp
fi
if [ -e "/etc/puppet/modules/bootstrap/manifests/$stage.pp" ]; then
- puppet agent --no-daemonize --debug --verbose --onetime /etc/puppet/modules/bootstrap/manifests/$stage.pp
- puppet agent --no-daemonize --debug --verbose
+ puppet apply /etc/puppet/modules/bootstrap/manifests/$stage.pp
fi