mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Added optional parameter scheduler_hints.
This commit is contained in:
parent
ed3f1a133b
commit
ad9379ad7d
1 changed files with 16 additions and 10 deletions
|
@ -168,6 +168,12 @@ options:
|
||||||
required: false
|
required: false
|
||||||
default: None
|
default: None
|
||||||
version_added: "1.6"
|
version_added: "1.6"
|
||||||
|
scheduler_hints:
|
||||||
|
description:
|
||||||
|
- Arbitrary key/value pairs to the scheduler for custom use
|
||||||
|
required: false
|
||||||
|
default: None
|
||||||
|
version_added: "1.9"
|
||||||
requirements: ["novaclient"]
|
requirements: ["novaclient"]
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
@ -422,7 +428,7 @@ def _create_server(module, nova):
|
||||||
'config_drive': module.params['config_drive'],
|
'config_drive': module.params['config_drive'],
|
||||||
}
|
}
|
||||||
|
|
||||||
for optional_param in ('region_name', 'key_name', 'availability_zone'):
|
for optional_param in ('region_name', 'key_name', 'availability_zone', 'scheduler_hints'):
|
||||||
if module.params[optional_param]:
|
if module.params[optional_param]:
|
||||||
bootkwargs[optional_param] = module.params[optional_param]
|
bootkwargs[optional_param] = module.params[optional_param]
|
||||||
try:
|
try:
|
||||||
|
@ -543,6 +549,7 @@ def main():
|
||||||
auto_floating_ip = dict(default=False, type='bool'),
|
auto_floating_ip = dict(default=False, type='bool'),
|
||||||
floating_ips = dict(default=None),
|
floating_ips = dict(default=None),
|
||||||
floating_ip_pools = dict(default=None),
|
floating_ip_pools = dict(default=None),
|
||||||
|
scheduler_hints = dict(default=None),
|
||||||
))
|
))
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=argument_spec,
|
argument_spec=argument_spec,
|
||||||
|
@ -582,4 +589,3 @@ def main():
|
||||||
from ansible.module_utils.basic import *
|
from ansible.module_utils.basic import *
|
||||||
from ansible.module_utils.openstack import *
|
from ansible.module_utils.openstack import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue