Couple API Questions for Satellite 6.2 Hostgroups

Latest response
  1. Are there API calls for setting the OpenSCAP Capsule for a given hostgroup, and if so, what are they?

  2. What API calls set/determine the 'synced content vs All Media' Radio Selector on the Operating Systems tab of a Hostgroup?

I've checked through katello , foreman and satellite api and I can't seem to find them. I did find where the HostGroupsController function sets it in the foreman log, and I'm about to start digging through source, but thought this might be faster.

Thanks

Responses

Hello,

for the first question, unfortunately this is currently not possible. The openscap plugin does not extend host group API. I'm not aware of any bugzilla asking for that, would you mind creating one? It should be easy to add.

I'm not sure I entirely understand the second question. If you ask what determines when "synced content" is available, a host group must have lifecycle environment, corresponding content view with kickstart repo and content source specified.

Hope this helps

Marek Thanks that helped. For #1 Opened BZ1374285

For #2, you tipped me off to what was missing. I wasn't implicitly setting the Content View ID for a given Hostgroup, rather relying on the nested hostgroup to inherit that. Providing the three (content view id, content source id, lifecycle environment id) components accurately set the 'Media Selection' and 'Synched content' values in the hostgroup.

Thanks!

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.