Hi All,I started to experiment the image generator following the Readme.md and faces some questions :1 - in the hosts file I specified an IP address instead of 'mycompiler.mydomain.com'However in the playbook.yml file at the beginning there is :- hosts: your_host_hereI assume we need also to reference 'mycompiler.mydomain.com'That way we can organize multiple compiler servers if needed ?
2 - I don't understand how the root_password is encrypted as I do not see any salt in the playbook.yml except the one described in the luci_openwisp entry.
3 - Is there somewhere an exhaustive list of variables we can use, it's a little bit magic for me :-)
1 - I successfully managed how to work with the hosts file and the playbook.yml
2 - I was asking about a variables list because I was wondering whether or not a root_password_salt exists.However I understand and will try your trick for the time being.
Run the playbook with that user with -u <user>, if the user doesn't have sudo privileges just run the last 3 steps by passing -t compile,generator,build
The sudo privileges are needed to run "apt-get install" of the dependencies needed to compile, but compilation cannot be executed as root.
--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# 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
# workaround to avoid conflicts between wpad and wpad-mini
- "# CONFIG_PACKAGE_wpad-mini is not set"
# workaround to compile GL-MT300A
- 'CONFIG_TARGET_SUBTARGET="mt7620"'
- 'CONFIG_TARGET_PROFILE="DEVICE_gl-mt300a"'# workaround to avoid conflicts between wpad and wpad-mini
- "# CONFIG_PACKAGE_wpad-mini is not set"
- 'CONFIG_TARGET_SUBTARGET="mt7620"'
- 'CONFIG_TARGET_PROFILE="ramips_mt7620_DEVICE_gl-mt300a"'
# supported architectures
openwisp2fw_source_archs:
- ramips
#
# Automatically generated file; DO NOT EDIT.
# LEDE Configuration
#
CONFIG_MODULES=y
CONFIG_HAVE_DOT_CONFIG=y
# CONFIG_TARGET_arm64 is not set
# CONFIG_TARGET_sunxi is not set
# CONFIG_TARGET_apm821xx is not set
# CONFIG_TARGET_ath25 is not set
# CONFIG_TARGET_ar71xx is not set
# CONFIG_TARGET_at91 is not set
# CONFIG_TARGET_brcm2708 is not set
# CONFIG_TARGET_bcm53xx is not set
# CONFIG_TARGET_brcm47xx is not set
# CONFIG_TARGET_brcm63xx is not set
# CONFIG_TARGET_cns3xxx is not set
# CONFIG_TARGET_octeon is not set
# CONFIG_TARGET_gemini is not set
# CONFIG_TARGET_mpc85xx is not set
# CONFIG_TARGET_imx6 is not set
# CONFIG_TARGET_mxs is not set
# CONFIG_TARGET_adm8668 is not set
# CONFIG_TARGET_adm5120 is not set
# CONFIG_TARGET_xburst is not set
# CONFIG_TARGET_ixp4xx is not set
# CONFIG_TARGET_lantiq is not set
# CONFIG_TARGET_malta is not set
# CONFIG_TARGET_mvebu is not set
# CONFIG_TARGET_kirkwood is not set
# CONFIG_TARGET_mediatek is not set
CONFIG_TARGET_ramips=y
# CONFIG_TARGET_rb532 is not set
# CONFIG_TARGET_mcs814x is not set
# CONFIG_TARGET_layerscape is not set
# CONFIG_TARGET_oxnas is not set
# CONFIG_TARGET_armvirt is not set
# CONFIG_TARGET_ipq806x is not set
# CONFIG_TARGET_au1000 is not set
# CONFIG_TARGET_arc770 is not set
# CONFIG_TARGET_archs38 is not set
# CONFIG_TARGET_ar7 is not set
# CONFIG_TARGET_omap is not set
# CONFIG_TARGET_uml is not set
# CONFIG_TARGET_zynq is not set
# CONFIG_TARGET_x86 is not set
CONFIG_TARGET_ramips_rt305x=y
# CONFIG_TARGET_ramips_mt7620 is not set
# CONFIG_TARGET_ramips_mt7621 is not set
# CONFIG_TARGET_ramips_mt7628 is not set
# CONFIG_TARGET_ramips_mt7688 is not set
# CONFIG_TARGET_ramips_rt3883 is not set
# CONFIG_TARGET_ramips_rt288x is not set
# CONFIG_TARGET_MULTI_PROFILE is not set
CONFIG_TARGET_ramips_rt305x_Default=y
# CONFIG_TARGET_ramips_rt305x_DEVICE_px-4885-4M is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_px-4885-8M is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_carambola is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_a5-v11 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_w502u is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_freestation5 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_wr6202 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_mr-102n is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_air3gii is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_ALL02393G is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_all0256n-4M is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_all0256n-8M is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_all5002 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_all5003 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_asl26555-8M is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_asl26555-16M is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_atp-52b is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_awapn2403 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_awm002-evb-4M is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_awm002-evb-8M is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_awm003-evb is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_rt-g32-b1 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_rt-n10-plus is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_rt-n13u is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_wl-330n is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_wl-330n3g is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_hw550-3g is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_f5d8235-v2 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_f7c027 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_WHRG300N is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_dap-1350 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_DCS930 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_DCS930LB1 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_dir-300-b1 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_dir-300-b7 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_dir-320-b1 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_dir-600-b1 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_dir-610-a1 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_dir-615-d is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_dir-615-h1 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_dir-620-a1 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_dir-620-d1 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_dwr-512-b is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_wizard8800 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_3g-6200n is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_3g-6200nl is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_esr-9753 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_fonera20n is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_mpr-a1 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_mpr-a2 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_broadway is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_hlk-rm04 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_ht-tm02 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_d105 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_m2m is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_jhr-n805r is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_jhr-n825r is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_jhr-n926r is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_mofi3500-3gn is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_nw718 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_wnce2001 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_bc2 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_wt1520-4M is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_wt1520-8M is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_nixcore-x1-16M is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_nixcore-x1-8M is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_miniembplug is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_miniembwifi is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_psr-680w is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_mzk-dp150n is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_mzk-w300nh2 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_mzk-wdpr is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_ip2202 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_m3 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_m4-4M is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_m4-8M is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_x5 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_x8 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_pwh2004 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_rt5350f-olinuxino is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_rt5350f-olinuxino-evb is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_v22rw-2x2 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_WL-341V3 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_wl-351 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_sl-r7205 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_wcr-150gn is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_tew-714tru is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_rut5xx is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_3g150b is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_3g300m is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_w150m is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_w306r-v20 is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_ur-326n4g is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_ur-336un is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_vocore-16M is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_vocore-8M is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_wizfi630a is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_wr512-3gn-4M is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_wr512-3gn-8M is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_ncs601w is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_xdxrn502j is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_nbg-419n is not set
# CONFIG_TARGET_ramips_rt305x_DEVICE_nbg-419n2 is not set
CONFIG_HAS_SUBTARGETS=y
CONFIG_HAS_DEVICES=y
CONFIG_TARGET_BOARD="ramips"
CONFIG_TARGET_SUBTARGET="rt305x"
CONFIG_TARGET_PROFILE="Default"
CONFIG_TARGET_ARCH_PACKAGES="mipsel_24kc"
CONFIG_DEFAULT_TARGET_OPTIMIZATION="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc"
Next week I'll try to do something about it and let you know how it goes.
Thank you for your feedback.
Right now I've successfully generated and flashed the firmware based on LEDE-17.01 RC with the openwisp-config.As soon as the router will talk to the controller I'll provide some feedback.
I'm quite interrested with your architecture maybe we can open new threads on this forum where one could describe his requirement.I think it could help Federico to address our various needs.
I try to achieve a Freeradius, multi-role system, monitored, vouchers,...
Right now I would prefer to have a captive portal at the router level.
1 - Right now the router do not contact the controller. I got the following from logread :Failed to connect to controller during registration: curl exit code 48 who means as far as I found.CURLE_UNKNOWN_OPTION (48)An option passed to libcurl is not recognized/known. Refer to the appropriate documentation. This is most likely a problem in the program that uses libcurl. The error buffer might contain more specific information about which exact option it concerns.
curl --versionI started to study the openwisp-config code and realized some assumptions like the SSID should LEDE or OpenWrt. I wanted to use my own numbering system.
I defined a default configuration at the controller level with the appropriate MAC address, tested with both OpenWrt and OpenWisp backend, a bit lost here as my backend is LEDE with OpenWisp.
I don't know yet what the purpose of the Configuration key as I defined in the router the shared secret I use in my ansible-openwisp2 playbook shared secret who seems to be different.
2 - The system I want to build will manage pre-paid vouchers for visitors and post-paid for regular users.Users will have multi-role that way we can manage accounting at various levels.
3 - Yes I want to use Freeradius, applying the AAA paradigm. I need a web frontend to manage that as well as a monitoring system.
4 - I considered pfSense but it seems to me a little bit overkill to use it only for its captive portal features I would prefer to use coova-chilli at the router level (OpenVPN rather than PPTP).pfSense seems also a bit difficult or expensive to be hosted on a VPS.
5 - I evaluated Daloradius and Radiusdesk :- Daloradius is quite easy to deploy but do not target the scale we want to reach- I like the frontend of Radiusdesk- anyway OpenWisp use python, as scalability in its DNA, the imagenerator is here to manage multiple targets, it'll will be easier to put in a versioning system and open the gate for a CI integration.- right now I'm not sure if Django is the way to go as micro-framework like flask seems to be more flexible
sudo ansible-galaxy install --force openwisp.openwisp2-imagegeneratorSaisissez le code ici...openwisp2fw_source_targets:
#- system: ar71xx
#subtarget: generic
#profile: Default
#- system: x86
#subtarget: generic
#profile: Generic
- system: ramips
subtarget: mt7620
profile: DEVICE_gl-mt300a
fatal: [10.0.0.106]: FAILED! => {
"changed": true,
"cmd": [
"./build-images.sh"
],
"delta": "0:00:00.021893",
"end": "2017-12-04 13:45:37.171862",
"failed": true,
"invocation": {
"module_args": {
"_raw_params": "./build-images.sh",
"_uses_shell": false,
"chdir": "/root/user/openwisp2-firmware-generator",
"creates": null,
"executable": null,
"removes": null,
"warn": true
},
"module_name": "command"
},
"rc": 1,
"start": "2017-12-04 13:45:37.149969",
"stderr": "ln: failed to create symbolic link '/root/user/openwisp2-firmware-builds/snakeoil/latest': File exists",
"stdout": "",
"stdout_lines": [],
"warnings": []
}
to retry, use: --limit @/root/my-openwisp2-firmware-conf/playbook.retry
PLAY RECAP *********************************************************************
10.0.0.106 : ok=22 changed=17 unreachable=0 failed=1
Saisissez le code ici... openwisp2fw_organizations:
- name: snakeoil # name of the org
flavours: # supported flavours
- standard
luci_openwisp: # /etc/config/luci_openwisp
# other config keys can be added freely
username: "operator"
openwisp2fw_source_targets:
- system: ar71xx
subtarget: generic
profile: Default
- system: x86
subtarget: generic
profile: Generic
--