Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions plugins/module_utils/foreman_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
}

ENTITY_KEYS = dict(
content_view_environments='label',
hostgroups='title',
locations='title',
operatingsystems='title',
Expand Down
9 changes: 9 additions & 0 deletions plugins/modules/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,14 @@
- When you provide a I(network) here and I(compute_resource) is set, the network id will be automatically looked up.
- On oVirt/RHV I(cluster) is required in the hosts I(compute_attributes) for the lookup to work.
type: dict
content_view_environments:
description:
- Content View Environments to be associated with the host.
- Ignored if C(content_view) and C(lifecycle_environment) are set.
required: false
type: list
elements: str
version_added: 5.4.0
extends_documentation_fragment:
- theforeman.foreman.foreman
- theforeman.foreman.foreman.entity_state
Expand Down Expand Up @@ -453,6 +461,7 @@ def main():
image=dict(type='entity', scope=['compute_resource']),
compute_attributes=dict(type='dict'),
interfaces_attributes=dict(type='nested_list', foreman_spec=interfaces_spec, ensure=True),
content_view_environments=dict(type='entity_list'),
),
mutually_exclusive=[
['owner', 'owner_group']
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/apidoc/katello_host.json
Loading
Loading