X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fganeti2%2Ftemplates%2Finstance-debootstrap%2Fhooks%2F00-dsa-configure-networking.erb;h=e06ecfff0de90688f137b32d09341188fb385e03;hb=501e88f916b62cdc232b204457a82ee77ab089b2;hp=56ef8a9275fdbbb5707a8078fc0cd310f4415694;hpb=cafd5b31e25e55c90d6686995df20370acf8d982;p=dsa-puppet.git 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 56ef8a92..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 @@ -36,6 +36,7 @@ auto lo iface lo inet loopback EOF +fi ########################################### @@ -70,7 +71,7 @@ EOF ########################################### ########################################### -<% elif scope.lookupvar('::cluster').to_s == 'ganeti-osuosl.debian.org' -%> +<% elsif scope.lookupvar('::cluster').to_s == 'ganeti-osuosl.debian.org' -%> # ########################################### if [ "$NIC_COUNT" -ge 1 ]; then @@ -94,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 %>