Skip to main content

ARA Records Ansible

Project description

ARA Records Ansible

doc/source/_static/ara-with-icon.png

ARA Records Ansible playbook runs and makes the recorded data available and intuitive for users and systems.

The project provides several distinct components in order to make this happen:

  • An API server for sending and querying data relative to playbook execution results

  • An API client library for communicating with the API

  • An Ansible callback plugin to record events as they happen throughout the execution

  • An Ansible action module to associate arbitrary key/values to your playbook reports

Quickstart

Here’s how you can get started from scratch with default settings:

# Create a virtual environment and activate it so we don't conflict
# with system or distribution packages
python3 -m venv ~/.ara/virtualenv
source ~/.ara/virtualenv/bin/activate

# Install Ansible, ARA and it's API server dependencies
pip install ansible git+https://github.com/ansible-community/ara@feature/1.0[server]

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

# Run your playbook as your normally would
ansible-playbook playbook.yml

The data will be saved in real time throughout the execution of the Ansible playbook.

What happens behind the scenes is that the ARA Ansible callback plugin used the built-in API client to send the data to the API which then saved it to a database located by default at ~/.ara/server/ansible.sqlite.

You’re now ready to start poking at the API with the built-in API clients !

If you’d like to have the ARA web reporting interface, take a look at ara-web.

Documentation

Documentation for installing, configuring, running and using ara is available on readthedocs.io.

Community and getting help

You can chat with the ARA community on Slack and IRC. The two are transparently bridged with teamchat which broadcasts messages from one platform to the other.

In addition, you can also find ARA on Twitter: @ARecordsAnsible

IRC

Slack

Development and testing

# Retrieve the source and check out the 1.0 branch
git clone https://github.com/ansible-community/ara
cd ara
git checkout feature/1.0

# Install tox from pip or from your distro packages
pip install tox

# Run Ansible integration tests with the latest version of Ansible
tox -e ansible-integration

# Run integration tests with a specific version of Ansible
# Note: tox will always use the latest version of Ansible to run the playbook which runs the tests.
# For example, if the latest version of Ansible is 2.7.9, it will use Ansible 2.7.9
# to install Ansible==2.6.15 in a virtual environment and 2.6.15 is what will be tested.
tox -e ansible-integration -- -e ara_tests_ansible_version=2.6.15

# Run integration tests with Ansible from source
tox -e ansible-integration -- -e "ara_tests_ansible_name=git+https://github.com/ansible/ansible"

# Run unit tests
tox -e py3

# Run linters (pep8, black, isort)
tox -e linters

# Run test server -> http://127.0.0.1:8000/api/v1/
tox -e runserver

# Build docs
tox -e docs

Contributors

See contributors on GitHub.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

ara-1.0.0.0b2.tar.gz (519.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ara-1.0.0.0b2-py2.py3-none-any.whl (69.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ara-1.0.0.0b2.tar.gz.

File metadata

  • Download URL: ara-1.0.0.0b2.tar.gz
  • Upload date:
  • Size: 519.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.5.2

File hashes

Hashes for ara-1.0.0.0b2.tar.gz
Algorithm Hash digest
SHA256 e0a66def4a40767d4889cd47f7d33e05a327a13a1bc0dde04d757c2faaa9d398
MD5 23e2bb1f8de1faafab5203ba6ea5d2e2
BLAKE2b-256 29742f47d203998c3b428d6427d322abc78f53dc8f6a288b493ec0395349814b

See more details on using hashes here.

File details

Details for the file ara-1.0.0.0b2-py2.py3-none-any.whl.

File metadata

  • Download URL: ara-1.0.0.0b2-py2.py3-none-any.whl
  • Upload date:
  • Size: 69.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.5.2

File hashes

Hashes for ara-1.0.0.0b2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e16e0ece04e20c0a7024ae8f1e517cf3c25760a2a0323544a34df4a1da8b39ea
MD5 3689828f613ffc78eaf181c6b501bf1c
BLAKE2b-256 c65737975aaab224e0f03ca09fe364a33c01ff70d6b6a3bb12d71661f41e6e9a

See more details on using hashes here.

Supported by

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