theforeman / foreman-ansible-modules

Ansible modules for interacting with the Foreman API and various plugin APIs such as Katello
GNU General Public License v3.0
147 stars 163 forks source link

add tests for changing Host's CV and LCE #957

Open pondrejk opened 4 years ago

pondrejk commented 4 years ago
SUMMARY
ISSUE TYPE
pondrejk commented 3 years ago

Turns out that the content related attributes are not implemented in the host module so this is more of an RFE

host[content_facet_attributes]                             optional, nil allowed | Parameters for host's content_facet facet          Validations:Hash
host[content_facet_attributes][content_view_id]            optional, nil allowed | Validations: Integer
host[content_facet_attributes][lifecycle_environment_id]   optional, nil allowed | Validations: Integer
host[content_facet_attributes][content_source_id]          optional, nil allowed | Validations: Integer
host[content_facet_attributes][kickstart_repository_id]    optional, nil allowed | Repository Id associated with the kickstart repo used for provisioning          Validations: Integer
evgeni commented 3 years ago

@pondrejk are you sure?

It's part of the HostMixin: https://github.com/theforeman/foreman-ansible-modules/blob/d522e7534b03e71dde9706e83e93175fc591171d/plugins/module_utils/foreman_helper.py#L270-L273

So I'd expect that to work?