Updating Host Openscap Capsule via hammer or API

Latest response

Anyone have any ideas on updating the OpenScap Capsule for a host via hammer or the API.

Already have a BZ open for allowing API or hammer access to the hostgroup settings, and there's a separate, more (broad BZ for more access to the scap API )[https://bugzilla.redhat.com/show_bug.cgi?id=1342623] but would be nice if I can find a way to update all our imported hosts with the correct scap capsule.

thoughts?

Responses

Set the (AFAICT undocumented) openscap_proxy_id parameter for the host.

Rich,

On what version of Sat6 did you get that to work?

Always w/ the undocumented features and you guys :D

I'll check it out

Doesn't appear to do the trick. After updating a host w/ the relevant parameter, when I go to View Full Report, I still get "ERF42-7625 [Satellite::Exception]: No OpenSCAP Capsule found for ForemanOpenscap::ArfReport with 106335"

Which is typically fixed by setting the openscap capsule setting on the first tab of the Host Edit.

$ curl https://satellite/api/hosts/307/parameters |json_reformat 
    "results": [
        {
            "priority": 70,
            "created_at": "2017-08-10 10:38:30 -0400",
            "updated_at": "2017-08-10 10:38:30 -0400",
            "id": 546,
            "name": "openscap_proxy_id",
            "value": "5"
        }
    ]
Close

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