X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=bin%2Finstall_script.sh;h=322a1edf2297d016427ec181313b724b9b8f1405;hb=54cb56fe666f54a11f6e0b1a53303508a1826114;hp=36cc5943683f8edf24929b4dfa6a59ff6cdd979d;hpb=9f430d51eec914c00249b9dc73e82500d312d7af;p=perso%2FImmae%2FProjets%2FPuppet.git diff --git a/bin/install_script.sh b/bin/install_script.sh index 36cc594..322a1ed 100755 --- a/bin/install_script.sh +++ b/bin/install_script.sh @@ -11,6 +11,7 @@ $(basename $0) [options] One of the following options is necessary: --instance-id id Id of the cloud instance --vps-id id Id of the vps + --hetzner-id id Id of the Hetzner server Optional arguments: --password password Password of the host (only useful in case of no reboot and vps) @@ -53,6 +54,15 @@ while [ -n "$1" ]; do T="ovh_vps_ssd" shift ;; + --hetzner-id) + host_id="$2" + if [ -z "$host_user" ]; then + host_user="root" + fi + [ -n "$T" ] && usage && exit 1 + T="hetzner_server" + shift + ;; --password) password="$2" shift