make openwrt images for accesspoints (WIP)
[noc.git] / ansible / group_vars / accesspoints / main.yml
1 ---
2 openwrt_arch: ar71xx
3 openwrt_target: generic
4 openwrt_profile: ubnt-unifiac-lite
5 openwrt_output_image_suffixes:
6   - "generic-{{ openwrt_profile }}-squashfs-sysupgrade.bin"
7
8 openwrt_mixin:
9   /etc/dropbear/authorized_keys:
10     content: |-
11       {% for key in noc_ssh_keys %}
12       {{ key }}
13       {% endfor %}
14
15 openwrt_uci:
16   system:
17     - name: system
18       options:
19         hostname: '{{ inventory_hostname }}'
20         timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
21         ttylogin: '0'
22         log_size: '64'
23         urandom_seed: '0'
24
25     - name: timeserver 'ntp'
26       options:
27         enabled: '1'
28         enable_server: '0'
29         server:
30           - '0.lede.pool.ntp.org'
31           - '1.lede.pool.ntp.org'
32           - '2.lede.pool.ntp.org'
33           - '3.lede.pool.ntp.org'
34
35   network:
36     - name: globals 'globals'
37       options:
38         ula_prefix: fdc9:e01f:83db::/48
39
40     - name: interface 'loopback'
41       options:
42         ifname: lo
43         proto: static
44         ipaddr: 127.0.0.1
45         netmask: 255.0.0.0
46
47     - name: interface 'mgmt'
48       options:
49         type: bridge
50         ifname: "eth0.{{ net.mgmt.vlan }}"
51         accept_ra: 0
52         proto: static
53         ipaddr: "{{ net.mgmt.prefix | ipaddr(net.mgmt.offsets.accesspoints + groups.accesspoints.index(inventory_hostname)) | ipaddr('address') }}"
54         netmask: "{{ net.mgmt.prefix | ipaddr('netmask') }}"
55         gateway: "{{ net.mgmt.gw }}"
56         dns: "{{ net.mgmt.dns | join(' ') }}"
57         dns_search: realraum.at
58
59     - name: interface 'iot'
60       options:
61         type: bridge
62         ifname: "eth0.{{ net.iot.vlan }}"
63         accept_ra: 0
64         proto: none
65
66     - name: interface 'lan'
67       options:
68         type: bridge
69         ifname: "eth0.{{ net.lan.vlan }}"
70         accept_ra: 0
71         proto: none