Skip to main content

A desired state system for ansible

Project description

# 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 [](desired_state/ file.

Message types between finite state machines are defined in [](desired_state/

The reconciliation loop is defined as a finite state machine in [](desired_state/

The main monitor process which contains the reconciliation loop is defined in [](desired_state/

The generation of playbooks based on the differences between states is defined in [](desired_state/

Selection of appropriate change rules based on state diff is defined in [](desired_state/

A client/server implementation for injecting desired state into the monitor process is defined in the [](desired_state/ and [](desired_state/ files.

Collection support is defined in [](desired_state/

Streaming telemetry is defined in [](desired_state/

State schema validation is provided in [](desired_state/


0.1.0 (2020-09-02)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

desired_state-0.1.0.tar.gz (36.4 kB view hashes)

Uploaded Source

Built Distribution

desired_state-0.1.0-py2.py3-none-any.whl (21.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page