Satellite module in development

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

Hej there,

I’ve further improved the mentioned Ansible Satellite module and created a pull request:
https://github.com/ansible/ansible-modules-extras/pull/2265

  • almost all parameters for activation key management are covered
  • check mode is suported
  • syntax checking was done

Only missing now is that the output is sometimes string only, sometimes JSON, that could be improved I guess.

So if the pull request goes through or at least does not uncover major issues, I will try to create more Satellite modules based on that one.

Regards,

Roland