summaryrefslogtreecommitdiff
path: root/roles/vm/network/templates/netplan.yaml.j2
blob: 0d78ab46367b2c6eebb75174a891431975ebae56 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
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