|
@@ -1,44 +0,0 @@
|
|
|
-local_node: "{{supernodes[1]}}"
|
|
|
-
|
|
|
-supernode_mesh_mac: "{{local_node.mesh_mac}}"
|
|
|
-supernode_mesh_ipv4: "{{local_node.mesh_ip_v4}}"
|
|
|
-supernode_bat_macaddress: "{{local_node.bat_mac}}"
|
|
|
-supernode_mesh_ipv6: "{{local_node.mesh_ip_v6}}"
|
|
|
-supernode_local_ip: "{{local_node.public_ip|default(ansible_default_ipv4.address)}}"
|
|
|
-supernode_public_interface: "{{local_node.public_interface|default(ansible_default_ipv4.interface)}}"
|
|
|
-supernode_dhcp_range_start: "{{local_node.dhcp_range_start}}"
|
|
|
-supernode_dhcp_range_end: "{{local_node.dhcp_range_end}}"
|
|
|
-
|
|
|
-supernode_mesh_backbones:
|
|
|
- - name: "{{supernodes[0].name}}"
|
|
|
- remote_ip: "{{supernodes[0].public_ip|ipaddr('address')}}"
|
|
|
- mesh_ip: "{{supernodes[0].mesh_ip_v4|ipaddr('address')}}"
|
|
|
- address_v6: "{{supernodes[0].mesh_ip_v6|ipaddr('address')}}"
|
|
|
- local_ip: "{{supernode_local_ip|ipaddr('address')}}"
|
|
|
- interface: "{{supernode_public_interface}}"
|
|
|
- - name: "{{supernodes[2].name}}"
|
|
|
- remote_ip: "{{supernodes[2].public_ip|ipaddr('address')}}"
|
|
|
- mesh_ip: "{{supernodes[2].mesh_ip_v4|ipaddr('address')}}"
|
|
|
- address_v6: "{{supernodes[2].mesh_ip_v6|ipaddr('address')}}"
|
|
|
- local_ip: "{{supernode_local_ip|ipaddr('address')}}"
|
|
|
- interface: "{{supernode_public_interface}}"
|
|
|
-
|
|
|
-supernode_other_nameserver: "{{supernode_mesh_backbones|map(attribute='mesh_ip')|map('ipaddr','address')|join(', ')}}"
|
|
|
-supernode_other_ntp_server: "{{supernode_mesh_backbones|map(attribute='mesh_ip')|map('ipaddr','address')|join(', ')}}"
|
|
|
-
|
|
|
-supernode_interfaces:
|
|
|
- - name: eth0
|
|
|
- auto: true
|
|
|
- proto: inet
|
|
|
- type: dhcp
|
|
|
- - name: eth1
|
|
|
- auto: true
|
|
|
- proto: inet
|
|
|
- type: static
|
|
|
- config:
|
|
|
- - key: address
|
|
|
- value: "{{supernode_local_ip|ipaddr('address')}}"
|
|
|
- - key: netmask
|
|
|
- value: "{{supernode_local_ip|ipaddr('netmask')}}"
|
|
|
- - key: broadcast
|
|
|
- value: "{{supernode_local_ip|ipaddr('broadcast')}}"
|