- The name of the base image to boot. Mutually exclusive with image_id
required: true
default: None
version_added: "1.7"
image_filter:
description:
- Text to use to filter image names, for the case, such as HP, where there are multiple image names matching the common identifying portions. image_filter is a negative match filter - it is text that may not exist in the image name. Defaults to "(deprecated)"
version_added: "1.7"
flavor_id:
description:
- The id of the flavor in which the new VM has to be created. Mutually exclusive with flavor_ram
@ -95,9 +97,11 @@ options:
- The minimum amount of ram in MB that the flavor in which the new VM has to be created must have. Mutually exclusive with flavor_id
required: false
default: 1
version_added: "1.7"
flavor_filter:
description:
- Text to use to filter flavor names, for the case, such as Rackspace, where there are multiple flavors that have the same ram count. flavor_filter is a positive match filter - it must exist in the flavor name.
version_added: "1.7"
key_name:
description:
- The key pair name to be used when creating a VM
@ -118,21 +122,25 @@ options:
- Should a floating ip be auto created and assigned
required: false
default: 'yes'
version_added: "1.7"
floating_ips:
decription:
- list of valid floating IPs that pre-exist to assign to this node
required: false
default: None
version_added: "1.7"
floating_ip_pools:
description:
- list of floating IP pools from which to choose a floating IP
required: false
default: None
version_added: "1.7"
availability_zone:
description:
- Name of the availability zone
required: false
default: None
version_added: "1.7"
meta:
description:
- A list of key value pairs that should be provided as a metadata to the new VM
@ -194,15 +202,62 @@ EXAMPLES = '''
wait_for: 200
flavor_id: 101
security_groups: default
floating_ip:
auto: True
auto_floating_ip: yes
# If one wants to specify a floating ip to use:
<snip>
floating_ip:
ips:
- 15.126.238.160
# Creates a new VM in HP Cloud AE1 region availability zone az2 and assigns a pre-known floating IP