aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-08-18 13:09:29 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-02-17 17:31:09 +0100
commit367c391a61091817cf34475f91a23ca286eec334 (patch)
tree616ee3d89d031032681844f5825c9d41eec8e9c0 /bin
parent64d41da73cce0005757ca0f7dd88151f9ba5cf4a (diff)
downloadPuppet-367c391a61091817cf34475f91a23ca286eec334.tar.gz
Puppet-367c391a61091817cf34475f91a23ca286eec334.tar.zst
Puppet-367c391a61091817cf34475f91a23ca286eec334.zip
Add hetzner server scripts
Diffstat (limited to 'bin')
-rwxr-xr-xbin/install_script.sh10
1 files changed, 10 insertions, 0 deletions
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]
11 One of the following options is necessary: 11 One of the following options is necessary:
12 --instance-id id Id of the cloud instance 12 --instance-id id Id of the cloud instance
13 --vps-id id Id of the vps 13 --vps-id id Id of the vps
14 --hetzner-id id Id of the Hetzner server
14 15
15 Optional arguments: 16 Optional arguments:
16 --password password Password of the host (only useful in case of no reboot and vps) 17 --password password Password of the host (only useful in case of no reboot and vps)
@@ -53,6 +54,15 @@ while [ -n "$1" ]; do
53 T="ovh_vps_ssd" 54 T="ovh_vps_ssd"
54 shift 55 shift
55 ;; 56 ;;
57 --hetzner-id)
58 host_id="$2"
59 if [ -z "$host_user" ]; then
60 host_user="root"
61 fi
62 [ -n "$T" ] && usage && exit 1
63 T="hetzner_server"
64 shift
65 ;;
56 --password) 66 --password)
57 password="$2" 67 password="$2"
58 shift 68 shift