diff options
Diffstat (limited to 'inventory/host_vars/ch-router.yml')
-rw-r--r-- | inventory/host_vars/ch-router.yml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/inventory/host_vars/ch-router.yml b/inventory/host_vars/ch-router.yml index b2b49063..1acfc98f 100644 --- a/inventory/host_vars/ch-router.yml +++ b/inventory/host_vars/ch-router.yml @@ -1,6 +1,6 @@ --- openwrt_variant: openwrt -openwrt_release: 18.06.2 +openwrt_release: 18.06.4 openwrt_arch: x86 openwrt_target: 64 openwrt_profile: Generic @@ -91,7 +91,11 @@ openwrt_uci: - name: interface 'magenta' options: ifname: eth1 - proto: dhcp + proto: static + ipaddr: "{{ network_zones.magenta.prefix | ipaddr(network_zones.magenta.offsets[inventory_hostname]) | ipaddr('address') }}" + netmask: "{{ network_zones.magenta.prefix | ipaddr('netmask') }}" + gateway: "{{ network_zones.magenta.gw }}" + dns: "{{ network_zones.magenta.dns }}" - name: interface 'mgmt' options: |