ansible / tower-nagios-integration

Scripts and documentation related to the integration of Ansible Tower with Nagios.
MIT License
15 stars 5 forks source link

Plans / timeline to upgrade from using `tower-cli` to replacement `awx`? #1

Open inversecow opened 3 years ago

inversecow commented 3 years ago

Thank you for developing this tool. It would appear that tower-cli has become deprecated in preference for using awx.

Is there plans to update this project, to leverage awx in place of the pre-existing tower-cli dependencies / calls? If yes, what is the projected timeline?

badnetmask commented 3 years ago

Hi @inversecow, thank you for your interest in the project. My team has been winding down the usage of Nagios, and for that reason the upgrade development has slowed down. I do however have a personal interest in this, so I will take a look at what needs to be done, and assess the next steps. Please bare with me a little bit. Thank you.

badnetmask commented 3 years ago

So, I took an initial stab at it. Unfortunately, according to this message, the new CLI tool was not written with a programatic interface in mind, so I need to move away completely from it, and use direct REST API calls.

The new not-sufficiently-tested code has been pushed to the dev branch. Would you please test and see how it works for you?

The biggest difference is that you need to set up various environment variables to pass the authentication information.

TOWER_HOST=https://tower.example.com
TOWER_USERNAME=admin
TOWER_PASSWORD=password

I will find some time to test it more during the week.