Convert the check_capsules module into a real python module
gonoph opened this issue · comments
Currently the check_capsules
is a shell script that makes several assumptions (which is the bug):
- it assumes the user/pass of the satellite is the defaults
- it assumes the API endpoint hostname is the default of
satellite.example.com
It's also lacking some functionality that is replaced with an Ansible do-util loop and jq (which is the enhancement):
- It should take a timeout value, and should automatically sleep/wait for the capsules synchronization to be complete.
- it uses
jq
to expose the variable data - thus it cannot be delegated to a remote host.