From df0c42af3366f013afa1ee13eed04307260beae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 11 Mar 2018 12:26:28 +0100 Subject: Add scripts for ovh cloud --- bin/install_script_ovh_cloud_instance.sh | 182 +++++++++++++++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100755 bin/install_script_ovh_cloud_instance.sh (limited to 'bin/install_script_ovh_cloud_instance.sh') diff --git a/bin/install_script_ovh_cloud_instance.sh b/bin/install_script_ovh_cloud_instance.sh new file mode 100755 index 0000000..26e410e --- /dev/null +++ b/bin/install_script_ovh_cloud_instance.sh @@ -0,0 +1,182 @@ +#!/bin/bash + +usage() { +cat < $ARCH_PUPPET_INITIAL_CONFIGURATION +host_address=$(python $PYTHON_DIRECTORY/get_initial_configuration_cloud_instance.py $instance_id | jq -r '.ips.v4.ipAddress') + +cat > $ARCH_HOST_SCRIPT < $ARCH_INSTALL_SCRIPT < $ARCH_PUPPET_CONFIGURATION_SCRIPT < $ARCH_HOST_PUPPET_CONFIGURATION_SCRIPT <