summaryrefslogtreecommitdiff
path: root/roles/vm-network/templates/interfaces_lan.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-11-21 22:28:39 +0100
committerChristian Pointner <equinox@spreadspace.org>2017-11-21 22:28:39 +0100
commit91cd5480b5a1ca1103d5e239af3d331477c41c2c (patch)
treeb495bf31e2d5da50b045838a1e8d0455db09ee65 /roles/vm-network/templates/interfaces_lan.j2
initial commit as copy from helsinki ansible repo
Diffstat (limited to 'roles/vm-network/templates/interfaces_lan.j2')
-rw-r--r--roles/vm-network/templates/interfaces_lan.j217
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/vm-network/templates/interfaces_lan.j2 b/roles/vm-network/templates/interfaces_lan.j2
new file mode 100644
index 00000000..36ae2883
--- /dev/null
+++ b/roles/vm-network/templates/interfaces_lan.j2
@@ -0,0 +1,17 @@
+# This file describes the network interfaces available on your system
+# and how to activate them. For more information, see interfaces(5).
+
+source /etc/network/interfaces.d/*
+
+# The loopback network interface
+auto lo
+iface lo inet loopback
+
+# The internal network interface
+auto {{ srv_network.internal.interface }}
+iface {{ srv_network.internal.interface }} inet static
+ address {{ srv_network.internal.ip }}
+ netmask 255.255.255.0
+ gateway 192.168.1.254
+ pre-up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra
+ pre-up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/autoconf