ara-infra/website/content/_index.md

3.9 KiB

kind
home

What's ARA ?

ARA Records Ansible playbooks and makes them easier to understand and troubleshoot.

reports

ARA saves playbook results to a local or remote database by using an Ansible callback plugin and provides an API to integrate this data in tools and interfaces.

The ara project provides ARA's Ansible roles and plugins, the REST API server as well as simple built-in web interfaces to browse the recorded data.

The ara-web project provides a stateless javascript client interface to the ARA API.

How does it work ?

ARA Records Ansible playbooks through an Ansible callback plugin.

recording-workflow

  1. ARA is installed and Ansible is configured to use the callback plugin
  2. An ansible-playbook command is executed
  3. Ansible triggers the callback plugin for every event (v2_playbook_on_start, v2_runner_on_failed, etc.)
  4. The relevant information is retrieved from the Ansible playbook execution context and is sent to the API server
  5. The API server validates and serializes the data before storing it the configured database backend
  6. The API server sends a response back to the API client with the results
  7. The callback plugin returns, ending the callback hook
  8. Ansible continues running the playbook until it fails or is completed (back to step 2)

Once the data has been saved in the database, it is made available for query by the API and web interfaces.

Quickstart

Here's how you can get started from scratch with sane defaults with python>=3.6:

# Install ARA and Ansible for the current user
python3 -m pip install --user ansible "ara[server]"

# Tell Ansible to use the ARA callback plugin
export ANSIBLE_CALLBACK_PLUGINS="$(python3 -m ara.setup.callback_plugins)"

# Run your playbook
ansible-playbook playbook.yml

If nothing went wrong, your playbook data should have been saved in a local database at ~/.ara/server/ansible.sqlite.

You can take a look at the recorded data by running ara-manage runserver and pointing your browser at http://127.0.0.1:8000/.

That's it !

For more information, refer to the documentation on installation and configuration.

Live demos

You can find live demos deployed by the built-in ara_api and ara_web Ansible roles at https://api.demo.recordsansible.org and https://web.demo.recordsansible.org.

ARA is free and open source

ARA is free and open source under the GPLv3 license.

The code review and CI infrastructure is hosted by OpenDev.

You can participate in code reviews and learn how you can contribute your first patch in the contributors documentation.

ARA is tested, stable and production ready

Each new commit to ARA is gated against a series of unit and integration tests against different Linux distributions and versions of Ansible in order to prevent regressions.

ARA is used to record more than a million playbooks a month from the OpenStack community alone.

It works.

ARA is offline and decentralized by default

Running Ansible from your laptop ? No problem.

You can browse your ARA reports locally from a sqlite database without ever leaving the comfort of localhost.

Need to aggregate data from multiple locations ? You can run an API server and hook it up to a database engine like PostgreSQL or MySQL.