|
|
@ -55,7 +55,7 @@ options:
|
|
|
|
- The memory allocated to the instance, used with custom service offerings
|
|
|
|
- The memory allocated to the instance, used with custom service offerings
|
|
|
|
template:
|
|
|
|
template:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Name or id of the template to be used for creating the new instance.
|
|
|
|
- Name, display text or id of the template to be used for creating the new instance.
|
|
|
|
- Required when using C(state=present).
|
|
|
|
- Required when using C(state=present).
|
|
|
|
- Mutually exclusive with C(ISO) option.
|
|
|
|
- Mutually exclusive with C(ISO) option.
|
|
|
|
iso:
|
|
|
|
iso:
|
|
|
@ -67,8 +67,9 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Name of the filter used to search for the template or iso.
|
|
|
|
- Name of the filter used to search for the template or iso.
|
|
|
|
- Used for params C(iso) or C(template) on C(state=present).
|
|
|
|
- Used for params C(iso) or C(template) on C(state=present).
|
|
|
|
|
|
|
|
- The filter C(all) was added in 2.6.
|
|
|
|
default: executable
|
|
|
|
default: executable
|
|
|
|
choices: [ featured, self, selfexecutable, sharedexecutable, executable, community ]
|
|
|
|
choices: [ all, featured, self, selfexecutable, sharedexecutable, executable, community ]
|
|
|
|
aliases: [ iso_filter ]
|
|
|
|
aliases: [ iso_filter ]
|
|
|
|
version_added: '2.1'
|
|
|
|
version_added: '2.1'
|
|
|
|
hypervisor:
|
|
|
|
hypervisor:
|
|
|
@ -303,7 +304,13 @@ template:
|
|
|
|
description: Name of template the instance was deployed with.
|
|
|
|
description: Name of template the instance was deployed with.
|
|
|
|
returned: success
|
|
|
|
returned: success
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
sample: Debian-8-64bit
|
|
|
|
sample: Linux Debian 9 64-bit
|
|
|
|
|
|
|
|
template_display_text:
|
|
|
|
|
|
|
|
description: Display text of template the instance was deployed with.
|
|
|
|
|
|
|
|
returned: success
|
|
|
|
|
|
|
|
type: string
|
|
|
|
|
|
|
|
sample: Linux Debian 9 64-bit 200G Disk (2017-10-08-622866)
|
|
|
|
|
|
|
|
version_added: 2.6
|
|
|
|
service_offering:
|
|
|
|
service_offering:
|
|
|
|
description: Name of the service offering the instance has.
|
|
|
|
description: Name of the service offering the instance has.
|
|
|
|
returned: success
|
|
|
|
returned: success
|
|
|
@ -371,6 +378,7 @@ class AnsibleCloudStackInstance(AnsibleCloudStack):
|
|
|
|
'serviceofferingname': 'service_offering',
|
|
|
|
'serviceofferingname': 'service_offering',
|
|
|
|
'isoname': 'iso',
|
|
|
|
'isoname': 'iso',
|
|
|
|
'templatename': 'template',
|
|
|
|
'templatename': 'template',
|
|
|
|
|
|
|
|
'templatedisplaytext': 'template_display_text',
|
|
|
|
'keypair': 'ssh_key',
|
|
|
|
'keypair': 'ssh_key',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
self.instance = None
|
|
|
|
self.instance = None
|
|
|
@ -878,8 +886,11 @@ def main():
|
|
|
|
memory=dict(type='int'),
|
|
|
|
memory=dict(type='int'),
|
|
|
|
template=dict(),
|
|
|
|
template=dict(),
|
|
|
|
iso=dict(),
|
|
|
|
iso=dict(),
|
|
|
|
template_filter=dict(default="executable", aliases=['iso_filter'], choices=['featured', 'self', 'selfexecutable', 'sharedexecutable', 'executable',
|
|
|
|
template_filter=dict(
|
|
|
|
'community']),
|
|
|
|
default="executable",
|
|
|
|
|
|
|
|
aliases=['iso_filter'],
|
|
|
|
|
|
|
|
choices=['all', 'featured', 'self', 'selfexecutable', 'sharedexecutable', 'executable', 'community']
|
|
|
|
|
|
|
|
),
|
|
|
|
networks=dict(type='list', aliases=['network']),
|
|
|
|
networks=dict(type='list', aliases=['network']),
|
|
|
|
ip_to_networks=dict(type='list', aliases=['ip_to_network']),
|
|
|
|
ip_to_networks=dict(type='list', aliases=['ip_to_network']),
|
|
|
|
ip_address=dict(defaul=None),
|
|
|
|
ip_address=dict(defaul=None),
|
|
|
|