Include floating ip

This commit is contained in:
lhahn committed 2024-07-29 13:44:32 +02:00
1 parent 25b688ec42
commit c6dc7b0008
6 files changed
+40 -2

No files matched your search

@@ -0,0 +1,14 @@
{% for config in floating_ips %}
{%if 'ipv4' in config % }
auto eth0:{{ loop.index }}
iface eth0:{{ loop.index }} inet static
address {{ config.ipv4 }}
netmask 32
{% endif %}
{%if 'ipv6' in config % }
auto eth0:{{ loop.index }}
iface eth0:{{ loop.index }} inet6 static
address {{ config.ipv6 }}
netmask 64
{% endif %}
{% endfor %}