summaryrefslogtreecommitdiff
path: root/roles/elevate/media/templates/netplan/lan-only.yaml.j2
blob: 689c311833c47f13d14688f41fd4db2ae1d70fb1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
network:
  version: 2
  renderer: networkd
  ethernets:
    {{ network.primary.interface }}:
      addresses: [ {{ (network.primary.ip + '/' + network.primary.mask) | ipaddr('address/prefix') }} ]
      gateway4: {{ network.primary.gateway }}
      accept-ra: false
      nameservers:
          search: [ {{ network.domain }} ]
          addresses: {{ network.nameservers | to_json }}