]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb
Add a fi
[dsa-puppet.git] / modules / ganeti2 / templates / instance-debootstrap / hooks / 00-dsa-configure-networking.erb
index 15c5c070d1861bbfa4c5bc2226eecd45aaf81cc7..ec79eafecdf4589b13d63ea569717305af9d5472 100755 (executable)
@@ -36,11 +36,12 @@ auto lo
 iface lo inet loopback
 
 EOF
+fi
 
 
 ###########################################
 ###########################################
-<% if scope.lookupvar('::cluster') == 'ganeti2.debian.org' -%>
+<% if scope.lookupvar('::cluster').to_s == 'ganeti2.debian.org' -%>
 
 ###########################################
 if [ "$NIC_COUNT" -ge 1 ]; then
@@ -70,7 +71,7 @@ EOF
 
 ###########################################
 ###########################################
-<% elif scope.lookupvar('::cluster') == 'ganeti-osuosl.debian.org' -%>
+<% elsif scope.lookupvar('::cluster').to_s == 'ganeti-osuosl.debian.org' -%>
 #
 ###########################################
 if [ "$NIC_COUNT" -ge 1 ]; then
@@ -96,6 +97,7 @@ EOF
 
 <% else -%>
 
+# No config for cluster <%= scope.lookupvar('::cluster').to_s %>
 cp /etc/resolv.conf $TARGET/etc/resolv.conf
 
 <% end -%>