Automate OpenWRT/LEDE firmware generation with Ansible

2nd December 2016 in Coding Tags: ansible, lede, open-source, openwisp, openwrt

Jump straight to the code: ansible-openwisp2-imagegenerator.

If you are using OpenWRT, LEDE or OpenWISP2, chances are high you may be compiling different images for different organizations (different clients, different no-profit organizations, different community networks) and different flavours (full-featured, minimal, mesh-network specific, ecc).

If you are doing so, you may have incurred in the problem of keeping track of the configuration of the various images you create over time.

For configuration in this case I mean which packages are included, which architectures are supported, which customizations are enabled (eg: BusyBox settings) and so on.

I have this problem and to cope with it I wrote an ansible role that is specific for OpenWISP2, but I paid attention to make it enough flexible so it can be reused in different contexts where automating the generation of firmwares based on OpenWRT or LEDE via ansible makes sense.

Here's the repository: ansible-openwisp2-imagegenerator.

By keeping the configuration of the firmware generation in YAML files, it's easier to track down the how a specific image was generated, builds are versioned and the process is highly configurable.

It is also easy to add new clients/organizations to your build system, just add the details in the YAML, run your builds again and you are ready to go.

Retweet

Comments

Leave your comment

Categories

Let's be social

Popular posts

Latest Comments

  1. Great news Aymará! Very happy to know this post has inspired you to experiment :-)

    By Federico Capoano in First DjangoGirls Rome wrap-up & afterthoughts

  2. Hi!! I'm a Django Girls coach too. Here, in Argentina, made just what you suggested, splited the workshop in two days. The experiment went just great! Most of the girls achieved to publish the blog from ground 0. It feels great to be helpfull ...

    By Aymará in First DjangoGirls Rome wrap-up & afterthoughts

  3. Send any question to the interop-dev mailing list or open an issue on github.

    By Federico in Network Topology Visualizer: django-netjsongraph

  4. I have a question about Network Topology Collector, can you brief me pls?

    By Nasrin Akter in Network Topology Visualizer: django-netjsongraph

  5. Thanks !

    By Alois in How to speed up tests with Django and PostgreSQL

Popular Tags

battlemesh censorship creativity criptography django event fosdem google-summer-of-code ibiza inspiration javascript jquery linux nemesisdesign netjson ninux nodeshot open-source openwisp openwrt performance photo programming python security staticgenerator talk upload wifi wireless-community