Code Monkey home page Code Monkey logo

ansible-openwrt's Introduction

ansible-openwrt

Configure your openwrt system (and variants, cerowrt in my case) using ansible.

Works with the official raw module und some custom modules to avoid having to run python on the target - no extra dependencies for your embedded target system.

Currently under development. I have a way to set uci values if needed and run commit at the end if anything changed. I am trying to at least build a superset of the config-cerowrt.sh shell script plus whatever i will need myself.

Be careful with blindly running it, if you connect to your openwrt via wifi and you change network settings you may lock yourself out.

See host_vars/example-gw.home.lan for how to override the role defaults in your local clone.

Installation (ansible-galaxy and librarian)

In an attempt to make this more reusable, I am trying to move all the roles to ansible galaxy and use librarian-ansible to manage dependencies. librarian-ansible uses the Ansiblefile to declare the external playbooks that ansible-openwrt requires.

To automatically retrieve dependencies:

cd ansible-openwrt
gem install librarian-ansible
librarian-ansible install

Contributors

Jan Wagner (waha on github pointed out that the uci module needs to return json and contributed related fixes allowing it to work with recent versions of ansible.

TODO

  • port official opkg module to shellscript or raw
  • how to manage /etc/dropbear_authorized_keys? port file to sh?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.