blob: 350753f6f4e08fc1a423d0b9bc90df889805b76a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
network:
version: 2
renderer: networkd
ethernets:
{{ network.primary.interface }}:
addresses: [ {{ (network.primary.ip + '/' + network.primary.mask) | ipaddr('address/prefix') }} ]
accept-ra: false
vlans:
{{ network.primary.interface }}.{{ network_zones.ccinet.vlan }}:
id: {{ network_zones.ccinet.vlan }}
link: {{ network.primary.interface }}
addresses: [ {{ network_zones.ccinet.prefix | ipaddr(network_zones.ccinet.offsets[inventory_hostname]) | ipaddr('address/prefix') }} ]
gateway4: {{ network_zones.ccinet.gw }}
accept-ra: false
nameservers:
search: [ {{ network.domain }} ]
addresses: {{ network_zones.ccinet.dns | to_json }}
|