Hej hej,
in case you are interested, I am currently developing my first Ansible module using the Satellite REST API. Currently it can create and delete activation keys, but my plan is to use it as a blueprint for multiple Satellite modules for the real stuff like managing hosts, life cycles, etc.
The state of the module is right now:
-
using the requests python library for easier REST handling
-
supporting creation and deletion of keys
-
can already ignore invalid certificates
-
requires key name and organization - if one of the parameters is not specific enough, this is reported as an error
-
if key was already deleted or created, module does not report error or change
What is missing right now:
- more parameters for keys
- support for check mode
- re-using the basic structure of the module to create other ones managing hosts, etc.
- proper testing against Satellite 6.2 Beta
- pep/syntax checking, etc.
The code can be found at:
https://github.com/liquidat/ansible-modules-extras/tree/satellite_activation_keys/cloud/satellite
Regards,
Roland