* import-keys: do not use ssh if host is localhost.
* import-certs: concat.pem; cert.pem and cert.crt symlinks; restart services.
* compile: automatic definitions for per-node backup::users.
-* provision: openssh-server installation should be optional and disabled for TPC profile.
hydra_user_config vg $hostname "Install vg"
hydra_user_config grub y "Setup GRUB? (y/n)"
hydra_user_config mirror http://http.debian.net/debian/ "Debian mirror"
+ hydra_user_config ssh y "Install openssh-server? (y/n)"
# Check arch
if [ "$arch" == "armel" ] || [ "$arch" == "armhf" ]; then
hydra_provision_networking
# SSH.
-echo "Installing OpenSSH daemon..."
-$APT_INSTALL openssh-server -y
-hydra_sudo_run chroot $WORK/ service ssh stop
+if [ "$ssh" == "y" ]; then
+ echo "Installing OpenSSH daemon..."
+ $APT_INSTALL openssh-server -y
+ hydra_sudo_run chroot $WORK/ service ssh stop
+fi
# Sudo.
echo "Installing sudo..."
hydra_sudo_run chroot $WORK passwd root
# Fingerprints
-hydra_provision_fingerprints
+if [ "$ssh" == "y" ]; then
+ hydra_provision_fingerprints
+fi
echo "Umounting installation device..."
hydra_sudo_run umount $WORK/sys $WORK/proc $WORK/dev $WORK