diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-01-01 18:03:33 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-01-01 18:03:33 +0100 |
commit | 44d19e291610373de73b7140fb853b494be6cf18 (patch) | |
tree | c0bd5814bccfeea2bd3f6c3bc1087fceac963c68 /inventory/host_vars/glt-gw-r3.yml | |
parent | convert some more openwrt hosts to new image generation mechanism (diff) |
convert all remaining openwrt hosts to new image generation
Diffstat (limited to 'inventory/host_vars/glt-gw-r3.yml')
-rw-r--r-- | inventory/host_vars/glt-gw-r3.yml | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/inventory/host_vars/glt-gw-r3.yml b/inventory/host_vars/glt-gw-r3.yml index 3fc1978f..b15edfec 100644 --- a/inventory/host_vars/glt-gw-r3.yml +++ b/inventory/host_vars/glt-gw-r3.yml @@ -1,13 +1,9 @@ --- -install_playbook: openwrt - -openwrt_variant: openwrt -openwrt_release: 19.07.7 openwrt_arch: x86 openwrt_target: geode -openwrt_profile: Generic +openwrt_profile: generic openwrt_output_image_suffixes: - - "combined-ext4.img.gz" + - "{{ openwrt_profile }}-ext4-combined.img.gz" openwrt_packages_remove: - ppp @@ -52,8 +48,8 @@ openwrt_mixin: STOP=91 start() { - WAN_IF=$(uci get network.wan.ifname) - LAN_IF=$(uci get network.lan.ifname) + WAN_IF=$(uci get network.wan.device) + LAN_IF=$(uci get network.lan.device) LAN_IP=$(uci get network.lan.ipaddr) LAN_MASK=$(uci get network.lan.netmask) @@ -124,14 +120,14 @@ openwrt_uci: - name: interface 'loopback' options: - ifname: lo + device: lo proto: static ipaddr: 127.0.0.1 netmask: 255.0.0.0 - name: interface 'wan' options: - ifname: eth0 + device: eth0 proto: static ipaddr: "{{ network_zones.r3_ff.prefix | ipaddr(network_zones.r3_ff.offsets[inventory_hostname]) | ipaddr('address') }}" netmask: "{{ network_zones.r3_ff.prefix | ipaddr('netmask') }}" @@ -140,12 +136,12 @@ openwrt_uci: - name: interface 'lan' options: - ifname: eth1 + device: eth1 proto: static ipaddr: "{{ network_zones.r3_lan.prefix | ipaddr(network_zones.r3_lan.offsets[inventory_hostname]) | ipaddr('address') }}" netmask: "{{ network_zones.r3_lan.prefix | ipaddr('netmask') }}" - name: interface 'unused' options: - ifname: eth2 + device: eth2 proto: none |