Re: [OpenWrt-Devel] Configuration management for OpenWrt

2020-04-08 Thread Wes Turner
/etc in git + Shell script + Ansible I wrote a shell script that drops lock files in /etc/setup when that function has successfully run without error. If the lock file exists (test -f "/etc/setup/${lockname}"), the function doesn't run again whenever I re-run the shell script. I include /etc/setup

Re: [OpenWrt-Devel] Configuration management for OpenWrt

2020-04-08 Thread Joel Wirāmu Pauling
Ansible doesn't require or need python on targets. In fact it's one of it's biggest selling points and why over a 3rd of modules are network device centric. There is a UCI module for openwrt: https://github.com/lefant/ansible-openwrt-uci I tend to redeploy images/snapshots to VM's and then run o

[OpenWrt-Devel] Configuration management for OpenWrt

2020-04-08 Thread Paul Spooren
Hi all, I was wondering if there are some best practices for configuration management of OpenWrt devices. I understand that it is fairly easy to get/restore a backup of the etc/config folder, but though maybe there are some smarter ways. Ideally a local state (e.g. git repository) would deploy mu