summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-router.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-07-04 23:16:33 +0200
committerChristian Pointner <equinox@spreadspace.org>2019-07-04 23:16:33 +0200
commita310cb9b251b20e25139a277b148a9b32d6c2b51 (patch)
tree3c0a109bb375d8623e7a6bf0055f9893262408e6 /inventory/host_vars/ch-router.yml
parentadded magenta ip config (diff)
ch-router ip config und openwrt upgrade
Diffstat (limited to 'inventory/host_vars/ch-router.yml')
-rw-r--r--inventory/host_vars/ch-router.yml8
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: