forked from ninuxorg/ansible-nnxx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
firmware.yml
executable file
·181 lines (181 loc) · 6.01 KB
/
firmware.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
- hosts:
- builder
roles:
- openwisp.openwisp2-imagegenerator
vars:
openwisp2fw_controller_url: "https://controller.nnxx.ninux.org"
basedir: /home/jenkins/workspace/Firmware
openwisp2fw_ssl_lib: mbedtls
openwisp2fw_source_dir: "{{ basedir }}/source"
openwisp2fw_generator_dir: "{{ basedir }}/generator"
openwisp2fw_bin_dir: "/mnt/nfs-firmware/Builds"
openwisp2fw_source_repo: https://github.com/openwrt/openwrt.git
openwisp2fw_source_version: openwrt-19.07
openwisp2fw_source_feeds:
- method: src-git
name: openwisp
location: https://github.com/openwisp/openwisp-config.git
branch: master
- method: src-git
name: monitoring
location: https://github.com/openwisp/openwrt-openwisp-monitoring.git
branch: master
- method: src-git
name: packages
location: https://github.com/openwrt/packages.git
branch: openwrt-19.07
- method: src-git
name: luci
location: https://github.com/openwrt/luci.git
branch: openwrt-19.07
- method: src-git
name: targets
location: https://github.com/openwrt/targets.git
branch: master
- method: src-git
name: routing
location: https://github.com/openwrt/routing.git
branch: openwrt-19.07
openwisp2fw_source_targets:
- system: ar71xx
subtarget: generic
profile: tl-wdr3600-v1
- system: ar71xx
subtarget: generic
profile: tl-wdr4300-v1
- system: ar71xx
subtarget: generic
profile: tl-wr1043nd-v4
- system: ipq806x
subtarget: generic
profile: tplink_c2600
- system: mvebu
subtarget: cortexa9
profile: linksys_wrt3200acm
- system: ramips
subtarget: mt76x8
profile: gl-mt300n-v2
# the following packages will be compiled and added
# to all the firmware images by default
openwisp2fw_source_default_packages:
- openwisp-config
# the following packages are compiled for convenience
# so they can be added by using playbook variables if needed
openwisp2fw_source_additional_packages:
- wpad
- iputils-ping
- ip-full
- wget
- partx-utils
- bird2
- bird2c
- bird2cl
- librt
- luci
- luci-ssl
- iputils-ping
- ip-full
- iwinfo
- iperf3
- ipip
- kmod-ipip
- lua-cjson
- uhttpd-mod-ubus
# chilli
- coova-chilli
- lua-cjson
- rpcd-mod-iwinfo
- openvpn-{{ openwisp2fw_ssl_lib }}
# monitoring
- netjson-monitoring
- openwisp-monitoring
# other OpenWRT/LEDE configurations
openwisp2fw_source_other_configs:
# busybox
- CONFIG_BUSYBOX_CUSTOM=y
- CONFIG_BUSYBOX_CONFIG_FEATURE_EDITING_SAVEHISTORY=y
- CONFIG_BUSYBOX_CONFIG_FEATURE_EDITING_SAVE_ON_EXIT=y
- CONFIG_BUSYBOX_CONFIG_FEATURE_REVERSE_SEARCH=y
- CONFIG_BUSYBOX_CONFIG_FEATURE_VI_UNDO=y
- CONFIG_BUSYBOX_CONFIG_WATCH=y
# chilli
- CONFIG_COOVACHILLI_REDIR=y
- CONFIG_COOVACHILLI_OPENSSL=y
# workaround to avoid conflicts between wpad and wpad-mini
- "# CONFIG_PACKAGE_wpad-mini is not set"
# packages passed to "PACKAGES" flag of image builder (in the image building step)
openwisp2fw_default_packages:
- -ppp
- -ppp-mod-pppoe
- -wpad-mini
- -wpad-basic
- wpad
- uhttpd
- openvpn-{{ openwisp2fw_ssl_lib }}
- uhttpd-mod-ubus
- openwisp-config
- bird2
- bird2c
- bird2cl
# monitoring
- netjson-monitoring
- openwisp-monitoring
# image flavours (see README to know what a flavour is)
nnxx_full_packages:
- iputils-ping
- ip-full
- wget
- partx-utils
- iwinfo
- iperf3
- ipip
- kmod-ipip
- libustream-{{ openwisp2fw_ssl_lib }}
- px5g
- luci-ssl
nnxx_chilli:
- coova-chilli
- lua-cjson
- rpcd-mod-iwinfo
openwisp2fw_image_flavours:
default:
ar71xx:
packages: "{{ openwisp2fw_default_packages + nnxx_full_packages }}"
ipq806x:
packages: "{{ openwisp2fw_default_packages + nnxx_full_packages }}"
mvebu:
packages: "{{ openwisp2fw_default_packages + nnxx_full_packages }}"
ramips:
packages: "{{ openwisp2fw_default_packages + nnxx_full_packages }}"
chilli:
ar71xx:
packages: "{{ openwisp2fw_default_packages + nnxx_full_packages + nnxx_chilli }}"
ipq806x:
packages: "{{ openwisp2fw_default_packages + nnxx_full_packages + nnxx_chilli }}"
mvebu:
packages: "{{ openwisp2fw_default_packages + nnxx_full_packages + nnxx_chilli }}"
ramips:
packages: "{{ openwisp2fw_default_packages + nnxx_full_packages + nnxx_chilli }}"
openwisp2fw_organizations:
- name: basilicata
flavours:
- default
- chilli
openwisp:
url: "{{ openwisp2fw_controller_url }}"
shared_secret: "Secretn1nuxB4s"
management_interface: "vpnbas"
root_password: "ninux"
categories:
default: "171ea956-99bd-459f-aa12-407ff0d451df"
chilli: "3afe564b-6d80-4e27-8456-d34368684069"
openwisp2fw_uploader:
enabled: false
url: "{{ openwisp2fw_controller_url }}"
token: "f195f5d9de7177f6a6240586479ddea51b96bfd2"
image_types:
- ar71xx-generic-tl-wr1043nd-v4-squashfs-sysupgrade.bin
- ar71xx-generic-tl-wdr3600-v1-squashfs-sysupgrade.bin
- ar71xx-generic-tl-wdr4300-v1-squashfs-sysupgrade.bin
- ipq806x-generic-tplink_c2600-squashfs-sysupgrade.bin
- ramips-mt7620-gl-mt300n-squashfs-sysupgrade