RedHatSatellite / satellite-demo

Group of Ansible playbooks to build, install, and demo Satellite 6 made of multiple systems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.