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.



Leave your comment


Let's be social

Popular posts

Latest Comments

  1. Hi Ronak, for any question regarding OpenWISP, use one of the support channels:

    By Federico Capoano in netjsonconfig: convert NetJSON to OpenWRT UCI

  2. Hi, I have installed openwisp controller using ansible playbook. Now, i am adding the configurations automatically using OPENWRT devices in openwisp file by specifying shared_key so can you suggest me if I want to set limit to add configuration how can i do it?

    By Ronak in netjsonconfig: convert NetJSON to OpenWRT UCI

  3. Hi Julio! I missed your comment a few years ago but I'm glad you are working with OpenWISP, I'll try to reach you in private :-)

    By Federico Capoano in A Turning Point in my Life, Community Networks and OpenWISP

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

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

  5. 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

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