waveclaw / puppet-subscription_manager

Handle Client Registration to RedHat Satellite 6 or Katello
https://rhn.redhat.com
Other
6 stars 34 forks source link

Unregister #85

Closed Shavindra closed 5 years ago

Shavindra commented 5 years ago

I don't see the functionality to unregister only. Is it possible to add the functionality ?

waveclaw commented 5 years ago

Unregister is possible with the rhsm_register type. Just ensure that the type is absent as you would any other type to trigger the unregister process.

If this does not work for you, please open a new ticket with details from your experience.

You cannot use the friendly wrapper classes for this.

If you would like to write a bolt task for this, I can accept that merge request. A task may be useful for large sites to wipe and re-register systems in bulk for those who prefer to use bolt between Puppet runs to force a known state.