Restructure ARA ansible plugins into it's own tree

This is not backwards compatible -- it requires users to change
the path to their callback library according to the documentation.
This change will make it easier to introduce additional plugins such
as an ARA Ansible action module.

Change-Id: I1fa15d3af2310114aa02443c20ded34323e05e01
This commit is contained in:
David Moreau-Simard 2016-09-17 12:20:40 -04:00
parent 65273f38f7
commit 582167d386
6 changed files with 4 additions and 4 deletions

View File

View File

@ -11,9 +11,9 @@ Set up your `ansible.cfg`_ file to seek that callback in the appropriate
directory. Here's an example that covers most common locations::
[defaults]
callback_plugins = /usr/lib/python2.7/site-packages/ara/callback:$VIRTUAL_ENV/lib/python2.7/site-packages/ara/callback:/usr/local/lib/python2.7/dist-packages/ara/callback
callback_plugins = /usr/lib/python2.7/site-packages/ara/plugins/callbacks:$VIRTUAL_ENV/lib/python2.7/site-packages/ara/plugins/callbacks:/usr/local/lib/python2.7/dist-packages/ara/plugins/callbacks
.. _callback: https://github.com/dmsimard/ara/blob/master/ara/callback/log_ara.py
.. _callback: https://github.com/dmsimard/ara/blob/master/ara/plugins/callbacks/log_ara.py
.. _ansible.cfg: http://docs.ansible.com/ansible/intro_configuration.html#configuration-file
*That's it!*

View File

@ -17,7 +17,7 @@ tox -e venv --notest
source .tox/venv/bin/activate
# Setup ARA
export ANSIBLE_CALLBACK_PLUGINS="ara/callback"
export ANSIBLE_CALLBACK_PLUGINS="ara/plugins/callbacks"
export ARA_DATABASE="sqlite:///${DATABASE}"
# Run test playbooks

View File

@ -5,7 +5,7 @@ import random
import ara.webapp as w
import ara.models as m
import ara.utils as u
import ara.callback.log_ara as l
import ara.plugins.callbacks.log_ara as l
from mock import Mock