summaryrefslogtreecommitdiff
path: root/roles/cloud/post-install/templates/edis-kvm-interfaces.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/cloud/post-install/templates/edis-kvm-interfaces.j2')
-rw-r--r--roles/cloud/post-install/templates/edis-kvm-interfaces.j221
1 files changed, 21 insertions, 0 deletions
diff --git a/roles/cloud/post-install/templates/edis-kvm-interfaces.j2 b/roles/cloud/post-install/templates/edis-kvm-interfaces.j2
new file mode 100644
index 00000000..1cb7c511
--- /dev/null
+++ b/roles/cloud/post-install/templates/edis-kvm-interfaces.j2
@@ -0,0 +1,21 @@
+# 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
+
+
+auto {{ network.primary.name }}
+iface {{ network.primary.name }} inet static
+ pre-up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra
+ pre-up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/autoconf
+ address {{ network.primary.address | ansible.utils.ipaddr('address') }}
+ netmask {{ network.primary.address | ansible.utils.ipaddr('netmask') }}
+ gateway {{ network.primary.gateway }}
+
+iface {{ network.primary.name }} inet6 static
+ address {{ network.primary.address6 }}
+ gateway {{ network.primary.gateway6 }}