aboutsummaryrefslogtreecommitdiff
path: root/templates/interfaces.j2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/interfaces.j2')
-rw-r--r--templates/interfaces.j223
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/interfaces.j2 b/templates/interfaces.j2
new file mode 100644
index 0000000..7813093
--- /dev/null
+++ b/templates/interfaces.j2
@@ -0,0 +1,23 @@
+auto lo
+iface lo inet loopback
+
+auto {{ public_interface }}
+iface {{ public_interface }} inet manual
+
+auto vmbr0
+iface vmbr0 inet static
+ address {{ ansible_host }}
+ netmask 255.255.255.0
+ gateway {{ public_gateway }}
+ bridge_ports {{ public_interface }}
+ bridge_stp off
+ bridge_fd 0
+
+auto vmbr1
+iface vmbr1 inet static
+ address {{ nat_bridge_ip }}
+ netmask 255.255.255.0
+ bridge_ports none
+ bridge_stp off
+ bridge_fd 0
+