Coder Social home page Coder Social logo

ansible-state's Introduction

Ansible Desired State Configuration

Desired state configuration allows users to focus on what they want instead of how to make it so. This simplifies automation for domain experts and allows automation experts to make generic operations that will work for many configurations.

Getting Started

This repository uses pipenv to manage the dependencies. To install the dependencies for a development environment run the following commands:

pipenv install --dev

To load the shell for this environment run these commands:

pipenv shell

To install an example collection use this command:

ansible-galaxy collection install benthomasson.expect

To run the tests use this command after opening the shell:

pytest -v

Code Organization

This project uses event driven programming using finite state machines to provide deterministic and correct behavior. This allows the project to react to external events easily.

The entry point for the CLI commands is located the cli.py file.

Message types between finite state machines are defined in messages.py.

The reconciliation loop is defined as a finite state machine in reconciliation_fsm.py

The main monitor process which contains the reconciliation loop is defined in monitor.py

The generation of playbooks based on the differences between states is defined in diff.py.

Selection of appropriate change rules based on state diff is defined in rule.py

A client/server implementation for injecting desired state into the monitor process is defined in the client.py and server.py files.

Collection support is defined in collection.py.

Streaming telemetry is defined in stream.py.

State schema validation is provided in validate.py.

ansible-state's People

Contributors

benthomasson avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ansible-state's Issues

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.