mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
ovirt_templates: Add seal parameter (#31482)
This commit is contained in:
parent
e872763877
commit
0bce693046
1 changed files with 10 additions and 0 deletions
|
@ -96,6 +96,14 @@ options:
|
|||
will be copied to the created template."
|
||||
- "This parameter is used only when C(state) I(present)."
|
||||
default: False
|
||||
seal:
|
||||
description:
|
||||
- "'Sealing' is an operation that erases all machine-specific configurations from a filesystem:
|
||||
This includes SSH keys, UDEV rules, MAC addresses, system ID, hostname, etc.
|
||||
If I(true) subsequent virtual machines made from this template will avoid configuration inheritance."
|
||||
- "This parameter is used only when C(state) I(present)."
|
||||
default: False
|
||||
version_added: "2.5"
|
||||
extends_documentation_fragment: ovirt
|
||||
'''
|
||||
|
||||
|
@ -259,6 +267,7 @@ def main():
|
|||
image_provider=dict(default=None),
|
||||
image_disk=dict(default=None, aliases=['glance_image_disk_name']),
|
||||
template_image_disk_name=dict(default=None),
|
||||
seal=dict(type='bool'),
|
||||
)
|
||||
module = AnsibleModule(
|
||||
argument_spec=argument_spec,
|
||||
|
@ -282,6 +291,7 @@ def main():
|
|||
ret = templates_module.create(
|
||||
result_state=otypes.TemplateStatus.OK,
|
||||
clone_permissions=module.params['clone_permissions'],
|
||||
seal=module.params['seal'],
|
||||
)
|
||||
elif state == 'absent':
|
||||
ret = templates_module.remove()
|
||||
|
|
Loading…
Reference in a new issue