Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add documention for using ARA with AWX/Tower #24
ARA and AWX/Tower aren't mutually exclusive. They can be used individually or together depending on the user's needs and use cases.
In theory, we would be able to install ara in the default virtualenv but that doesn't work and is documented in ansible/awx#1737
What had worked for me in the past would be to create a new virtualenv, install ara and ansible in it and then make awx/tower use that virtualenv for job templates after setting the callback plugin in the settings interface.
@6sossomons yes, at the time I created the issue I also noted that the procedure didn't work and needed to be troubleshooted.
The issue was that job isolation (in settings -> jobs) was enabled and
Considering that AWX/Tower requires postgresql, it might be wise to consider documenting setting it up in postgresql instead of sqlite anyway.
@MrMEEE you can see this in my first comments but when I got it to work, it was by creating the venv in
In other news, Tower 3.5 has been released for RHEL8 with full python3 support which will make it easier to integrate ara 1.0.
In the meantime, ara 1.0 is already integration tested with postgresql so we could have ara leverage the AWX/Tower postgresql instance for data storage.
The release of CentOS 8 is also making progress: https://wiki.centos.org/About/Building_8
I won't have time to look at this for a while still but I'd appreciate any help.
No progress on this yet but cross-referencing a reply I did to a post on /r/ansible about integration with AWX/Tower: https://www.reddit.com/r/ansible/comments/eo6k4x/ansible_ara_integration_help/
I spent some time on this last night and got it working on the latest version of AWX on CentOS 8.
In a nutshell:
Some screen captures:
Setting up the callback plugins path and environment variables for configuring the ARA callback
Note: For the
Running the included demo template
Playbook task result
Playbook task file
Playbook extra_vars file
Following up on my previous comment, I've created a proof of concept gist that takes care of installing both AWX and ARA with instructions on how to setup AWX to send data to ARA: https://gist.github.com/dmsimard/368fa69e3927001f65a1b0d56fee7f02
It is minimal but a good starting point that demonstrates the integration working.
In terms of next steps, I think we need the following to do this cleanly:
Afterwards, it would probably make sense to write a small playbook that would create a postgresql database on the AWX postgresql instance so ARA can use that instead of the sqlite default.