Giter VIP home page Giter VIP logo

ejsb's Introduction

ejsb - e.j.'s system builder

what began as a personal fork of Ansible-NAS to replace FreeNAS, was rewritten and expanded to include other devices and services in my homelab.

ejsb is a grandiose name for the collection of learning, experimentation, and opinionated tooling that i've written to manage my personal infrastructure. this project is about learning and documenting what i've done to share knowledge.

inspired by khuedoan/homelab, i am rewriting it again.

...caution, this is a work in progress, breaking changes ahead...

asb

  • asb: (aka Ansible Systems Builder)

nrf

  • nrf: playing with Nornir + FastAPI to create an asynchronous network API

build instructions

...are being rewritten

references/inspiration

  • from Dave Barroso's most-excellent Building Scalable Tooling presentation (emphasis mine):

    Why do we want automation?

    Reliability

    • Does our software do what we claim it does?
    • Can we change it without breaking anything?
    • Test the interactions with the system from a user perspective first, then add tests to simulate (fixed) bugs

    Consistency

    • Avoid cognitive overhead which can lead to bugs, wasted time, and bikeshedding
    • Adopt frameworks and best practices
      • Choose a framework and stick by it unless strictly necessary
      • If you need external services, standardize and adopt them across the board (i.e., databases, message buses, etc)
      • Adopt a coding style (or an opinionated linter) to minimize arguments about style (i.e., black)
    • The goal is to be able to collaborate on multiple projects without having to pay a very expensive context switch cost or waste time arguing about tabs vs spaces or MySQL vs postgres

    Maintainability

    • Readability
      • Code is read more often than it is written so optimize for reading
    • Abstractions
      • Break down your code into different layers of abstraction
      • Each abstraction should be concerned about solving the problem presented in its layer
      • Each abstraction should provide a stable contract so other abstractions can consume it
      • Abstractions are good for the separation of concerns
        • Given the request of deploying a service, can my software identify which parts need to be configured and which parameters need to be set?
        • Given the right input, is my service generating the correct configuration?
        • Given some configuration, is my library able to deploy it correctly to the device?
    • Developer's tooling
      • A developer should have tooling to:
        • Help write code
          • autocompletion, inline documentation, refactoring, etc...
        • Inspect and explore what the program is doing during its execution
        • Observe how the system behaves in production

    Speed is not a goal but a consequence

  • khuedoan/homelab

  • Ansible-NAS

  • Ansible for DevOps

  • DebOps

  • JulioPDX Nornir+Fastapi

  • Sebastian Ramirez

  • network MOPs as automated workflows

  • how to build a network automation stack with nornir, napalm, and netbox

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.