From: Martin Zobel-Helas Date: Mon, 10 Sep 2012 20:57:42 +0000 (+0200) Subject: add ganeti3 cluster X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=commitdiff_plain;h=501e88f916b62cdc232b204457a82ee77ab089b2 add ganeti3 cluster Signed-off-by: Martin Zobel-Helas --- diff --git a/manifests/site.pp b/manifests/site.pp index e30db067..29f9d5aa 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -37,7 +37,7 @@ node default { include unbound include bacula::client - if $::hostname in [pasquini,tristano,bertali,boito,byrd] { + if $::hostname in [pasquini,tristano,bertali,boito,byrd,clementi] { include ganeti2 } diff --git a/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb b/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb index ec79eafe..e06ecfff 100755 --- a/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb +++ b/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb @@ -95,6 +95,31 @@ nameserver 140.211.166.130 nameserver 140.211.166.131 EOF +<% elsif scope.lookupvar('::cluster').to_s == 'ganeti3.debian.org' -%> +# +########################################### +if [ "$NIC_COUNT" -ge 1 ]; then + cat >> $TARGET/etc/network/interfaces << EOF +auto eth0 +iface eth0 inet static + address ${NIC_0_IP} + netmask 255.255.255.192 + gateway 82.195.75.126 + + pre-up /sbin/sysctl -w net.ipv6.conf.\$IFACE.accept_ra=0 || true +EOF + +fi + +########################################### +cat > $TARGET/etc/resolv.conf < # No config for cluster <%= scope.lookupvar('::cluster').to_s %> diff --git a/modules/ganeti2/templates/instance-debootstrap/variants/dsa.conf.erb b/modules/ganeti2/templates/instance-debootstrap/variants/dsa.conf.erb index bea25676..61e8a200 100644 --- a/modules/ganeti2/templates/instance-debootstrap/variants/dsa.conf.erb +++ b/modules/ganeti2/templates/instance-debootstrap/variants/dsa.conf.erb @@ -2,6 +2,7 @@ case scope.lookupvar('::cluster') when "ganeti2.debian.org" then 'MIRROR="http://mirror-ubc.debian.org/debian"' when "ganeti-osuosl.debian.org" then 'MIRROR="http://debian.osuosl.org/debian"' + when "ganeti3.debian.org" then 'MIRROR="http://mirror.ayous.org/debian"' else 'MIRROR="http://http.debian.net/debian"' end %>