diff --git a/image/imgen.tf b/image/imgen.tf index c5116e6325a5f5a47979eba2913b736616596d79..5908548bab59e25bb6ddd3637f4271b95ba71d4c 100644 --- a/image/imgen.tf +++ b/image/imgen.tf @@ -65,18 +65,18 @@ write_files: permissions: 0755 content: | #! /bin/sh - + # # script to set the hostname (except /etc/hosts) # - + if [ -z "$1" ]; then echo "Usage: $0 HOSTNAME [DOMAIN]" exit 0 fi h="$1" d="$2" - + sed -e "s/^\(manage_etc_hosts\):.*/\1: False/" -i /etc/cloud/cloud.cfg echo "$h" > /etc/hostname hostname "$h" @@ -103,7 +103,7 @@ write_files: content: | [Definition] dbpurgeage = 16w - + [DEFAULT] bantime = 8w @@ -111,7 +111,7 @@ runcmd: - apt-get purge -y joe nano - ln -sv /usr/lib/mc/mc.* /etc/profile.d/ - /usr/local/sbin/set-hostname.sh imgen terra - - su - debian -c 'git clone https://gitlab.meta.zcu.cz/HADOOP/terraform' + - su - debian -c 'git clone https://gitlab.cesnet.cz/702/HADOOP/terraform' EOT } } diff --git a/image/motd b/image/motd index 259c746812941667fb5771ed170fb824000438f5..da46d2d1f77719cc0da8bfe48a6b4f8cdd2cb74c 100644 --- a/image/motd +++ b/image/motd @@ -5,4 +5,4 @@ To setup Hadoop on single machine, launch: To setup Hadoop cluster using terraform and scripts, use [1]. -[1] https://gitlab.meta.zcu.cz/HADOOP/terraform +[1] https://gitlab.cesnet.cz/702/HADOOP/terraform