mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* fix #7600 add hookscript parameter to proxmox_kvm * add issue url to changelog * fix changelog missing quote * add missing version_added Co-authored-by: Felix Fontein <felix@fontein.de> * changelog: add missing dot Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
cf7a58f627
commit
e3a3950e3d
2 changed files with 20 additions and 0 deletions
2
changelogs/fragments/7600-proxmox_kvm-hookscript.yml
Normal file
2
changelogs/fragments/7600-proxmox_kvm-hookscript.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
minor_changes:
|
||||
- "proxmox_kvm - support the ``hookscript`` parameter (https://github.com/ansible-collections/community.general/issues/7600)."
|
|
@ -196,6 +196,11 @@ options:
|
|||
- Used only with clone
|
||||
type: bool
|
||||
default: true
|
||||
hookscript:
|
||||
description:
|
||||
- Script that will be executed during various steps in the containers lifetime.
|
||||
type: str
|
||||
version_added: 8.1.0
|
||||
hostpci:
|
||||
description:
|
||||
- Specify a hash/dictionary of map host pci devices into guest. O(hostpci='{"key":"value", "key":"value"}').
|
||||
|
@ -867,6 +872,17 @@ EXAMPLES = '''
|
|||
name: spynal
|
||||
node: sabrewulf-2
|
||||
migrate: true
|
||||
|
||||
- name: Add hookscript to existing VM
|
||||
community.general.proxmox_kvm:
|
||||
api_user: root@pam
|
||||
api_password: secret
|
||||
api_host: helldorado
|
||||
vmid: 999
|
||||
node: sabrewulf
|
||||
hookscript: local:snippets/hookscript.pl
|
||||
update: true
|
||||
|
||||
'''
|
||||
|
||||
RETURN = '''
|
||||
|
@ -1214,6 +1230,7 @@ def main():
|
|||
format=dict(type='str', choices=['cloop', 'cow', 'qcow', 'qcow2', 'qed', 'raw', 'vmdk', 'unspecified']),
|
||||
freeze=dict(type='bool'),
|
||||
full=dict(type='bool', default=True),
|
||||
hookscript=dict(type='str'),
|
||||
hostpci=dict(type='dict'),
|
||||
hotplug=dict(type='str'),
|
||||
hugepages=dict(choices=['any', '2', '1024']),
|
||||
|
@ -1432,6 +1449,7 @@ def main():
|
|||
efidisk0=module.params['efidisk0'],
|
||||
force=module.params['force'],
|
||||
freeze=module.params['freeze'],
|
||||
hookscript=module.params['hookscript'],
|
||||
hostpci=module.params['hostpci'],
|
||||
hotplug=module.params['hotplug'],
|
||||
hugepages=module.params['hugepages'],
|
||||
|
|
Loading…
Reference in a new issue