[debian-edu-commits] r78753 - branches/wheezy/debian-edu-config/cf

schweer-guest at alioth.debian.org schweer-guest at alioth.debian.org
Tue Jan 15 16:29:41 UTC 2013


Author: schweer-guest
Date: 2013-01-15 16:29:41 +0000 (Tue, 15 Jan 2013)
New Revision: 78753

Added:
   branches/wheezy/debian-edu-config/cf/cf.network
Log:
try to configure the network, if the main-server gets installed; please check


Added: branches/wheezy/debian-edu-config/cf/cf.network
===================================================================
--- branches/wheezy/debian-edu-config/cf/cf.network	                        (rev 0)
+++ branches/wheezy/debian-edu-config/cf/cf.network	2013-01-15 16:29:41 UTC (rev 78753)
@@ -0,0 +1,32 @@
+editfiles:
+
+  debian.server.installation::
+
+	{ /etc/network/interfaces
+        BeginGroupIfNoSuchLine 'iface eth0 inet static'
+          LocateLineMatching 'iface lo inet loopback'
+          InsertLine ''
+          InsertLine 'dns-nameservers 127.0.0.1'
+          InsertLine ''
+          InsertLine 'dns-search intern'
+          InsertLine ''
+          InsertLine 'auto eth0'
+          InsertLine 'iface eth0 inet static'
+          InsertLine 'address 10.0.2.2'
+          InsertLine 'gateway 10.0.0.1'
+        EndGroup
+
+          ResetSearch "1"
+
+        BeginGroupIfNoSuchLine '#iface eth0 inet dhcp'
+          LocateLineMatching 'iface eth0 inet dhcp'
+          ReplaceLineWith '#iface eth0 inet dhcp'
+        EndGroup
+	}
+
+shellcommands:
+
+  debian.server.installation::
+
+    "/etc/init.d/networking stop $$ /etc/init.d/networking start"
+




More information about the debian-edu-commits mailing list