We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c60d28a commit 1cdf75fCopy full SHA for 1cdf75f
network/vxlan.sh
@@ -1,9 +1,12 @@
1
#!/usr/bin/env bash
2
3
if [[ $IFACE == "{{ internal_interface }}" ]]; then
4
+
5
+{% if "network" in group_names or "manager" in group_names %}
6
ip link add vxlan0 type vxlan id 42 group 239.1.1.1 dstport 4789 dev {{ internal_interface }}
7
ip addr add {{ '192.168.112.0/20' | ansible.utils.ipaddr('net') | ansible.utils.ipaddr(node_id) | ansible.utils.ipaddr('address') }}/20 dev vxlan0
8
ip link set up dev vxlan0
9
+{% endif %}
10
11
ip link add vxlan1 type vxlan id 23 group 239.1.1.1 dstport 4789 dev {{ internal_interface }}
12
ip addr add {{ '192.168.128.0/20' | ansible.utils.ipaddr('net') | ansible.utils.ipaddr(node_id) | ansible.utils.ipaddr('address') }}/20 dev vxlan1
0 commit comments