From a6ec8f8947e1d6e56d1c0af6b67af2e7468ef98f Mon Sep 17 00:00:00 2001 From: heqnx Date: Sun, 22 Jun 2025 20:19:31 +0300 Subject: initial commit on working deployment --- templates/interfaces.j2 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 templates/interfaces.j2 (limited to 'templates/interfaces.j2') 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 + -- cgit v1.2.3