ich bastele mir gerade ein Vagrantfile für die automatisierte Installation von Ubuntu 18.04 mit KeyHelp. Die manuelle Installation von KeyHelp verlief bei einem Test reibungslos, aber ich würde das gern automatisieren.
Dank Aufruf von
Code: Select all
php /home/keyhelp/www/keyhelp/install/install.php --help
weiß ich, dass das möglich ist. Also habe ich die entsprechenden Parameter übergeben (in einem vom Vagrantfile aufgerufenen Shell-Skript):
Code: Select all
# Parameters:
# $1 = BOX_HOSTNAME
# $2 = KEYHELP_EMAIL
# $3 = KEYHELP_ADMIN_USERNAME
# $4 = KEYHELP_PASSWORD
# Needed for KeyHelp installation
hostname "$1"
apt-get -y install linux-image-extra-virtual
apt-get -y install fail2ban
ROOT_HOME="/root"
[...]
# Disable IPv6 - otherwise the Installation of KeyHelp will hang at some point
echo "Disabling IPv6"
echo "net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.eth0.disable_ipv6 = 1" >> /etc/sysctl.conf
sysctl -p
# Get the KeyHelp installer
mkdir "$ROOT_HOME/keyhelp"
cd "$ROOT_HOME/keyhelp"
wget https://install.keyhelp.de/get_keyhelp.php -O installkeyhelp.sh
chmod u+x installkeyhelp.sh
# Install KeyHelp
bash installkeyhelp.sh --non-interactive --notification="$2" --language="DE" --hostname-fqdn="$1" --admin-username="$3" --admin-password="$4" --admin-email="$2"
Als Ausgabe erhalte ich am Ende allerdings:
Code: Select all
default: -> Installing KeyHelp...
default: 2019-08-15 08:41:23 URL:https://install.keyhelp.de/files/releases/19.2.1/19.2.1-php71.tar.gz [10019727/10019727] -> "/tmp/keyhelp.tar.gz" [1]
default:
default: -> Installing ionCube...
default: 2019-08-15 08:41:29 URL:http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz [12489348/12489348] -> "/tmp/ioncube.tar.gz" [1]
default:
default: -> Run /home/keyhelp/www/keyhelp/install/install.php --installer-version 1 --non-interactive --notification=meinname@meinedomain.tld --language=DE --hostname-fqdn=mein.hostname.test --admin-username=keyadmin --admin-password=****** --admin-email=meinname@meinedomain.tld
default: Error: Unknown parameter "--hostname-fqdn"
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
Laut Hilfe ist der Parameter aber korrekt:
Code: Select all
# php /home/keyhelp/www/keyhelp/install/install.php --help
Dieses Programm installiert KeyHelp auf Ihrem Server.
Syntax: php install.php [OPTION] ...
Allgemein:
--help Zeigt diese Hilfe an.
--non-interactive Installation wird ohne Rückfragen ausgeführt.
--no-reboot Unterbindet den Reboot im Anschluss an die Installation.
--notification=<EMAIL_ADDRESS> Sendet nach Abschluss der Installation eine E-Mail an die angegebene E-Mail-Adresse.
--language=<LANGUAGE_CODE> Legt die Standardsprache von KeyHelp und seiner Komponenten fest.
--extended-log Protokolliert alles, auch sensible Daten wie Passwörter etc.
Installationsparameter:
--hostname-fqdn=<SERVER_DOMAIN> Der 'Vollständig qualifizierte Domainname' (FQDN), z.B. 'keyhelp.example.com'.
--server-fqdn=<SERVER_DOMAIN> Alias für --hostname-fqdn | Veraltet
--admin-username=<USERNAME> Administratorkonto: Loginname für KeyHelp-Oberfläche (min. 5 Zeichen).
--admin-password=<PASSWORD> Administratorkonto: Passwort für KeyHelp-Oberfläche (min. 6 Zeichen).
--admin-email=<EMAIL_ADDRESS> Administratorkonto: E-Mail-Adresse für automatisch generierte E-Mails.
Stelle ich mich gerade blöd an und übersehe etwas, oder handelt es sich um einen Bug?
Vielen Dank für Hinweise jeglicher Art!
Gruß
Jan