mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Reduce ignored sanity tests in cloud/misc modules (#845)
* Reduce ignored sanity tests in cloud/misc modules * Reduce ignored sanity tests in cloud/misc modules for proxmox_kvm * Fix * Remove in ignore-2.9.txt * Fix * Remove unneeded alias
This commit is contained in:
parent
b36f77515c
commit
d046dc34bf
12 changed files with 155 additions and 62 deletions
|
@ -19,6 +19,7 @@ options:
|
||||||
filter:
|
filter:
|
||||||
description:
|
description:
|
||||||
- Filter facts
|
- Filter facts
|
||||||
|
type: str
|
||||||
choices: [ status, result ]
|
choices: [ status, result ]
|
||||||
notes:
|
notes:
|
||||||
- See http://cloudinit.readthedocs.io/ for more information about cloud-init.
|
- See http://cloudinit.readthedocs.io/ for more information about cloud-init.
|
||||||
|
|
|
@ -25,30 +25,37 @@ options:
|
||||||
host:
|
host:
|
||||||
description:
|
description:
|
||||||
- Tiller's server host.
|
- Tiller's server host.
|
||||||
|
type: str
|
||||||
default: "localhost"
|
default: "localhost"
|
||||||
port:
|
port:
|
||||||
description:
|
description:
|
||||||
- Tiller's server port.
|
- Tiller's server port.
|
||||||
|
type: int
|
||||||
default: 44134
|
default: 44134
|
||||||
namespace:
|
namespace:
|
||||||
description:
|
description:
|
||||||
- Kubernetes namespace where the chart should be installed.
|
- Kubernetes namespace where the chart should be installed.
|
||||||
|
type: str
|
||||||
default: "default"
|
default: "default"
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- Release name to manage.
|
- Release name to manage.
|
||||||
|
type: str
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Whether to install C(present), remove C(absent), or purge C(purged) a package.
|
- Whether to install C(present), remove C(absent), or purge C(purged) a package.
|
||||||
choices: ['absent', 'purged', 'present']
|
choices: ['absent', 'purged', 'present']
|
||||||
|
type: str
|
||||||
default: "present"
|
default: "present"
|
||||||
chart:
|
chart:
|
||||||
description: |
|
description:
|
||||||
A map describing the chart to install. See examples for available options.
|
- A map describing the chart to install. See examples for available options.
|
||||||
|
type: dict
|
||||||
default: {}
|
default: {}
|
||||||
values:
|
values:
|
||||||
description:
|
description:
|
||||||
- A map of value options for the chart.
|
- A map of value options for the chart.
|
||||||
|
type: dict
|
||||||
default: {}
|
default: {}
|
||||||
disable_hooks:
|
disable_hooks:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -23,116 +23,148 @@ options:
|
||||||
user:
|
user:
|
||||||
description:
|
description:
|
||||||
- The user to authenticate with.
|
- The user to authenticate with.
|
||||||
|
type: str
|
||||||
required: true
|
required: true
|
||||||
url:
|
url:
|
||||||
description:
|
description:
|
||||||
- The url of the oVirt instance.
|
- The url of the oVirt instance.
|
||||||
|
type: str
|
||||||
required: true
|
required: true
|
||||||
instance_name:
|
instance_name:
|
||||||
description:
|
description:
|
||||||
- The name of the instance to use.
|
- The name of the instance to use.
|
||||||
|
type: str
|
||||||
required: true
|
required: true
|
||||||
aliases: [ vmname ]
|
aliases: [ vmname ]
|
||||||
password:
|
password:
|
||||||
description:
|
description:
|
||||||
- Password of the user to authenticate with.
|
- Password of the user to authenticate with.
|
||||||
|
type: str
|
||||||
required: true
|
required: true
|
||||||
image:
|
image:
|
||||||
description:
|
description:
|
||||||
- The template to use for the instance.
|
- The template to use for the instance.
|
||||||
|
type: str
|
||||||
resource_type:
|
resource_type:
|
||||||
description:
|
description:
|
||||||
- Whether you want to deploy an image or create an instance from scratch.
|
- Whether you want to deploy an image or create an instance from scratch.
|
||||||
|
type: str
|
||||||
choices: [ new, template ]
|
choices: [ new, template ]
|
||||||
zone:
|
zone:
|
||||||
description:
|
description:
|
||||||
- Deploy the image to this oVirt cluster.
|
- Deploy the image to this oVirt cluster.
|
||||||
|
type: str
|
||||||
instance_disksize:
|
instance_disksize:
|
||||||
description:
|
description:
|
||||||
- Size of the instance's disk in GB.
|
- Size of the instance's disk in GB.
|
||||||
|
type: str
|
||||||
aliases: [ vm_disksize]
|
aliases: [ vm_disksize]
|
||||||
instance_cpus:
|
instance_cpus:
|
||||||
description:
|
description:
|
||||||
- The instance's number of CPUs.
|
- The instance's number of CPUs.
|
||||||
|
type: str
|
||||||
default: 1
|
default: 1
|
||||||
aliases: [ vmcpus ]
|
aliases: [ vmcpus ]
|
||||||
instance_nic:
|
instance_nic:
|
||||||
description:
|
description:
|
||||||
- The name of the network interface in oVirt/RHEV.
|
- The name of the network interface in oVirt/RHEV.
|
||||||
|
type: str
|
||||||
aliases: [ vmnic ]
|
aliases: [ vmnic ]
|
||||||
instance_network:
|
instance_network:
|
||||||
description:
|
description:
|
||||||
- The logical network the machine should belong to.
|
- The logical network the machine should belong to.
|
||||||
|
type: str
|
||||||
default: rhevm
|
default: rhevm
|
||||||
aliases: [ vmnetwork ]
|
aliases: [ vmnetwork ]
|
||||||
instance_mem:
|
instance_mem:
|
||||||
description:
|
description:
|
||||||
- The instance's amount of memory in MB.
|
- The instance's amount of memory in MB.
|
||||||
|
type: str
|
||||||
aliases: [ vmmem ]
|
aliases: [ vmmem ]
|
||||||
instance_type:
|
instance_type:
|
||||||
description:
|
description:
|
||||||
- Define whether the instance is a server, desktop or high_performance.
|
- Define whether the instance is a server, desktop or high_performance.
|
||||||
- I(high_performance) is supported since Ansible 2.5 and oVirt/RHV 4.2.
|
- I(high_performance) is supported since Ansible 2.5 and oVirt/RHV 4.2.
|
||||||
|
type: str
|
||||||
choices: [ desktop, server, high_performance ]
|
choices: [ desktop, server, high_performance ]
|
||||||
default: server
|
default: server
|
||||||
aliases: [ vmtype ]
|
aliases: [ vmtype ]
|
||||||
disk_alloc:
|
disk_alloc:
|
||||||
description:
|
description:
|
||||||
- Define whether disk is thin or preallocated.
|
- Define whether disk is thin or preallocated.
|
||||||
|
type: str
|
||||||
choices: [ preallocated, thin ]
|
choices: [ preallocated, thin ]
|
||||||
default: thin
|
default: thin
|
||||||
disk_int:
|
disk_int:
|
||||||
description:
|
description:
|
||||||
- Interface type of the disk.
|
- Interface type of the disk.
|
||||||
|
type: str
|
||||||
choices: [ ide, virtio ]
|
choices: [ ide, virtio ]
|
||||||
default: virtio
|
default: virtio
|
||||||
instance_os:
|
instance_os:
|
||||||
description:
|
description:
|
||||||
- Type of Operating System.
|
- Type of Operating System.
|
||||||
|
type: str
|
||||||
aliases: [ vmos ]
|
aliases: [ vmos ]
|
||||||
instance_cores:
|
instance_cores:
|
||||||
description:
|
description:
|
||||||
- Define the instance's number of cores.
|
- Define the instance's number of cores.
|
||||||
|
type: str
|
||||||
default: 1
|
default: 1
|
||||||
aliases: [ vmcores ]
|
aliases: [ vmcores ]
|
||||||
sdomain:
|
sdomain:
|
||||||
description:
|
description:
|
||||||
- The Storage Domain where you want to create the instance's disk on.
|
- The Storage Domain where you want to create the instance's disk on.
|
||||||
|
type: str
|
||||||
region:
|
region:
|
||||||
description:
|
description:
|
||||||
- The oVirt/RHEV datacenter where you want to deploy to.
|
- The oVirt/RHEV datacenter where you want to deploy to.
|
||||||
|
type: str
|
||||||
instance_dns:
|
instance_dns:
|
||||||
description:
|
description:
|
||||||
- Define the instance's Primary DNS server.
|
- Define the instance's Primary DNS server.
|
||||||
|
type: str
|
||||||
aliases: [ dns ]
|
aliases: [ dns ]
|
||||||
instance_domain:
|
instance_domain:
|
||||||
description:
|
description:
|
||||||
- Define the instance's Domain.
|
- Define the instance's Domain.
|
||||||
|
type: str
|
||||||
aliases: [ domain ]
|
aliases: [ domain ]
|
||||||
instance_hostname:
|
instance_hostname:
|
||||||
description:
|
description:
|
||||||
- Define the instance's Hostname.
|
- Define the instance's Hostname.
|
||||||
|
type: str
|
||||||
aliases: [ hostname ]
|
aliases: [ hostname ]
|
||||||
instance_ip:
|
instance_ip:
|
||||||
description:
|
description:
|
||||||
- Define the instance's IP.
|
- Define the instance's IP.
|
||||||
|
type: str
|
||||||
aliases: [ ip ]
|
aliases: [ ip ]
|
||||||
instance_netmask:
|
instance_netmask:
|
||||||
description:
|
description:
|
||||||
- Define the instance's Netmask.
|
- Define the instance's Netmask.
|
||||||
|
type: str
|
||||||
aliases: [ netmask ]
|
aliases: [ netmask ]
|
||||||
|
instance_gateway:
|
||||||
|
description:
|
||||||
|
- Define the instance's Gateway.
|
||||||
|
type: str
|
||||||
|
aliases: [ gateway ]
|
||||||
instance_rootpw:
|
instance_rootpw:
|
||||||
description:
|
description:
|
||||||
- Define the instance's Root password.
|
- Define the instance's Root password.
|
||||||
|
type: str
|
||||||
aliases: [ rootpw ]
|
aliases: [ rootpw ]
|
||||||
instance_key:
|
instance_key:
|
||||||
description:
|
description:
|
||||||
- Define the instance's Authorized key.
|
- Define the instance's Authorized key.
|
||||||
|
type: str
|
||||||
aliases: [ key ]
|
aliases: [ key ]
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Create, terminate or remove instances.
|
- Create, terminate or remove instances.
|
||||||
choices: [ absent, present, restarted, shutdown, started ]
|
type: str
|
||||||
|
choices: [ absent, present, restart, shutdown, started ]
|
||||||
default: present
|
default: present
|
||||||
requirements:
|
requirements:
|
||||||
- ovirt-engine-sdk-python
|
- ovirt-engine-sdk-python
|
||||||
|
|
|
@ -16,20 +16,24 @@ options:
|
||||||
api_host:
|
api_host:
|
||||||
description:
|
description:
|
||||||
- the host of the Proxmox VE cluster
|
- the host of the Proxmox VE cluster
|
||||||
|
type: str
|
||||||
required: true
|
required: true
|
||||||
api_user:
|
api_user:
|
||||||
description:
|
description:
|
||||||
- the user to authenticate with
|
- the user to authenticate with
|
||||||
|
type: str
|
||||||
required: true
|
required: true
|
||||||
api_password:
|
api_password:
|
||||||
description:
|
description:
|
||||||
- the password to authenticate with
|
- the password to authenticate with
|
||||||
- you can use PROXMOX_PASSWORD environment variable
|
- you can use PROXMOX_PASSWORD environment variable
|
||||||
|
type: str
|
||||||
vmid:
|
vmid:
|
||||||
description:
|
description:
|
||||||
- the instance id
|
- the instance id
|
||||||
- if not set, the next available VM ID will be fetched from ProxmoxAPI.
|
- if not set, the next available VM ID will be fetched from ProxmoxAPI.
|
||||||
- if not set, will be fetched from PromoxAPI based on the hostname
|
- if not set, will be fetched from PromoxAPI based on the hostname
|
||||||
|
type: str
|
||||||
validate_certs:
|
validate_certs:
|
||||||
description:
|
description:
|
||||||
- enable / disable https certificate verification
|
- enable / disable https certificate verification
|
||||||
|
@ -40,51 +44,64 @@ options:
|
||||||
- Proxmox VE node, when new VM will be created
|
- Proxmox VE node, when new VM will be created
|
||||||
- required only for C(state=present)
|
- required only for C(state=present)
|
||||||
- for another states will be autodiscovered
|
- for another states will be autodiscovered
|
||||||
|
type: str
|
||||||
pool:
|
pool:
|
||||||
description:
|
description:
|
||||||
- Proxmox VE resource pool
|
- Proxmox VE resource pool
|
||||||
|
type: str
|
||||||
password:
|
password:
|
||||||
description:
|
description:
|
||||||
- the instance root password
|
- the instance root password
|
||||||
- required only for C(state=present)
|
- required only for C(state=present)
|
||||||
|
type: str
|
||||||
hostname:
|
hostname:
|
||||||
description:
|
description:
|
||||||
- the instance hostname
|
- the instance hostname
|
||||||
- required only for C(state=present)
|
- required only for C(state=present)
|
||||||
- must be unique if vmid is not passed
|
- must be unique if vmid is not passed
|
||||||
|
type: str
|
||||||
ostemplate:
|
ostemplate:
|
||||||
description:
|
description:
|
||||||
- the template for VM creating
|
- the template for VM creating
|
||||||
- required only for C(state=present)
|
- required only for C(state=present)
|
||||||
|
type: str
|
||||||
disk:
|
disk:
|
||||||
description:
|
description:
|
||||||
- hard disk size in GB for instance
|
- hard disk size in GB for instance
|
||||||
|
type: str
|
||||||
default: 3
|
default: 3
|
||||||
cores:
|
cores:
|
||||||
description:
|
description:
|
||||||
- Specify number of cores per socket.
|
- Specify number of cores per socket.
|
||||||
|
type: int
|
||||||
default: 1
|
default: 1
|
||||||
cpus:
|
cpus:
|
||||||
description:
|
description:
|
||||||
- numbers of allocated cpus for instance
|
- numbers of allocated cpus for instance
|
||||||
|
type: int
|
||||||
default: 1
|
default: 1
|
||||||
memory:
|
memory:
|
||||||
description:
|
description:
|
||||||
- memory size in MB for instance
|
- memory size in MB for instance
|
||||||
|
type: int
|
||||||
default: 512
|
default: 512
|
||||||
swap:
|
swap:
|
||||||
description:
|
description:
|
||||||
- swap memory size in MB for instance
|
- swap memory size in MB for instance
|
||||||
|
type: int
|
||||||
default: 0
|
default: 0
|
||||||
netif:
|
netif:
|
||||||
description:
|
description:
|
||||||
- specifies network interfaces for the container. As a hash/dictionary defining interfaces.
|
- specifies network interfaces for the container. As a hash/dictionary defining interfaces.
|
||||||
|
type: dict
|
||||||
mounts:
|
mounts:
|
||||||
description:
|
description:
|
||||||
- specifies additional mounts (separate disks) for the container. As a hash/dictionary defining mount points
|
- specifies additional mounts (separate disks) for the container. As a hash/dictionary defining mount points
|
||||||
|
type: dict
|
||||||
ip_address:
|
ip_address:
|
||||||
description:
|
description:
|
||||||
- specifies the address the container will be assigned
|
- specifies the address the container will be assigned
|
||||||
|
type: str
|
||||||
onboot:
|
onboot:
|
||||||
description:
|
description:
|
||||||
- specifies whether a VM will be started during system bootup
|
- specifies whether a VM will be started during system bootup
|
||||||
|
@ -93,20 +110,25 @@ options:
|
||||||
storage:
|
storage:
|
||||||
description:
|
description:
|
||||||
- target storage
|
- target storage
|
||||||
|
type: str
|
||||||
default: 'local'
|
default: 'local'
|
||||||
cpuunits:
|
cpuunits:
|
||||||
description:
|
description:
|
||||||
- CPU weight for a VM
|
- CPU weight for a VM
|
||||||
|
type: int
|
||||||
default: 1000
|
default: 1000
|
||||||
nameserver:
|
nameserver:
|
||||||
description:
|
description:
|
||||||
- sets DNS server IP address for a container
|
- sets DNS server IP address for a container
|
||||||
|
type: str
|
||||||
searchdomain:
|
searchdomain:
|
||||||
description:
|
description:
|
||||||
- sets DNS search domain for a container
|
- sets DNS search domain for a container
|
||||||
|
type: str
|
||||||
timeout:
|
timeout:
|
||||||
description:
|
description:
|
||||||
- timeout for operations
|
- timeout for operations
|
||||||
|
type: int
|
||||||
default: 30
|
default: 30
|
||||||
force:
|
force:
|
||||||
description:
|
description:
|
||||||
|
@ -119,11 +141,13 @@ options:
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Indicate desired state of the instance
|
- Indicate desired state of the instance
|
||||||
|
type: str
|
||||||
choices: ['present', 'started', 'absent', 'stopped', 'restarted']
|
choices: ['present', 'started', 'absent', 'stopped', 'restarted']
|
||||||
default: present
|
default: present
|
||||||
pubkey:
|
pubkey:
|
||||||
description:
|
description:
|
||||||
- Public key to add to /root/.ssh/authorized_keys. This was added on Proxmox 4.2, it is ignored for earlier versions
|
- Public key to add to /root/.ssh/authorized_keys. This was added on Proxmox 4.2, it is ignored for earlier versions
|
||||||
|
type: str
|
||||||
unprivileged:
|
unprivileged:
|
||||||
description:
|
description:
|
||||||
- Indicate if the container should be unprivileged
|
- Indicate if the container should be unprivileged
|
||||||
|
|
|
@ -28,19 +28,23 @@ options:
|
||||||
description:
|
description:
|
||||||
- Pass arbitrary arguments to kvm.
|
- Pass arbitrary arguments to kvm.
|
||||||
- This option is for experts only!
|
- This option is for experts only!
|
||||||
|
type: str
|
||||||
default: "-serial unix:/var/run/qemu-server/VMID.serial,server,nowait"
|
default: "-serial unix:/var/run/qemu-server/VMID.serial,server,nowait"
|
||||||
api_host:
|
api_host:
|
||||||
description:
|
description:
|
||||||
- Specify the target host of the Proxmox VE cluster.
|
- Specify the target host of the Proxmox VE cluster.
|
||||||
|
type: str
|
||||||
required: true
|
required: true
|
||||||
api_user:
|
api_user:
|
||||||
description:
|
description:
|
||||||
- Specify the user to authenticate with.
|
- Specify the user to authenticate with.
|
||||||
|
type: str
|
||||||
required: true
|
required: true
|
||||||
api_password:
|
api_password:
|
||||||
description:
|
description:
|
||||||
- Specify the password to authenticate with.
|
- Specify the password to authenticate with.
|
||||||
- You can use C(PROXMOX_PASSWORD) environment variable.
|
- You can use C(PROXMOX_PASSWORD) environment variable.
|
||||||
|
type: str
|
||||||
autostart:
|
autostart:
|
||||||
description:
|
description:
|
||||||
- Specify if the VM should be automatically restarted after crash (currently ignored in PVE API).
|
- Specify if the VM should be automatically restarted after crash (currently ignored in PVE API).
|
||||||
|
@ -50,50 +54,62 @@ options:
|
||||||
description:
|
description:
|
||||||
- Specify the amount of RAM for the VM in MB.
|
- Specify the amount of RAM for the VM in MB.
|
||||||
- Using zero disables the balloon driver.
|
- Using zero disables the balloon driver.
|
||||||
|
type: int
|
||||||
default: 0
|
default: 0
|
||||||
bios:
|
bios:
|
||||||
description:
|
description:
|
||||||
- Specify the BIOS implementation.
|
- Specify the BIOS implementation.
|
||||||
|
type: str
|
||||||
choices: ['seabios', 'ovmf']
|
choices: ['seabios', 'ovmf']
|
||||||
boot:
|
boot:
|
||||||
description:
|
description:
|
||||||
- Specify the boot order -> boot on floppy C(a), hard disk C(c), CD-ROM C(d), or network C(n).
|
- Specify the boot order -> boot on floppy C(a), hard disk C(c), CD-ROM C(d), or network C(n).
|
||||||
- You can combine to set order.
|
- You can combine to set order.
|
||||||
|
type: str
|
||||||
default: cnd
|
default: cnd
|
||||||
bootdisk:
|
bootdisk:
|
||||||
description:
|
description:
|
||||||
- Enable booting from specified disk. C((ide|sata|scsi|virtio)\d+)
|
- Enable booting from specified disk. C((ide|sata|scsi|virtio)\d+)
|
||||||
|
type: str
|
||||||
clone:
|
clone:
|
||||||
description:
|
description:
|
||||||
- Name of VM to be cloned. If C(vmid) is setted, C(clone) can take arbitrary value but required for initiating the clone.
|
- Name of VM to be cloned. If C(vmid) is setted, C(clone) can take arbitrary value but required for initiating the clone.
|
||||||
|
type: str
|
||||||
cores:
|
cores:
|
||||||
description:
|
description:
|
||||||
- Specify number of cores per socket.
|
- Specify number of cores per socket.
|
||||||
|
type: int
|
||||||
default: 1
|
default: 1
|
||||||
cpu:
|
cpu:
|
||||||
description:
|
description:
|
||||||
- Specify emulated CPU type.
|
- Specify emulated CPU type.
|
||||||
|
type: str
|
||||||
default: kvm64
|
default: kvm64
|
||||||
cpulimit:
|
cpulimit:
|
||||||
description:
|
description:
|
||||||
- Specify if CPU usage will be limited. Value 0 indicates no CPU limit.
|
- Specify if CPU usage will be limited. Value 0 indicates no CPU limit.
|
||||||
- If the computer has 2 CPUs, it has total of '2' CPU time
|
- If the computer has 2 CPUs, it has total of '2' CPU time
|
||||||
|
type: int
|
||||||
cpuunits:
|
cpuunits:
|
||||||
description:
|
description:
|
||||||
- Specify CPU weight for a VM.
|
- Specify CPU weight for a VM.
|
||||||
- You can disable fair-scheduler configuration by setting this to 0
|
- You can disable fair-scheduler configuration by setting this to 0
|
||||||
|
type: int
|
||||||
default: 1000
|
default: 1000
|
||||||
delete:
|
delete:
|
||||||
description:
|
description:
|
||||||
- Specify a list of settings you want to delete.
|
- Specify a list of settings you want to delete.
|
||||||
|
type: str
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- Specify the description for the VM. Only used on the configuration web interface.
|
- Specify the description for the VM. Only used on the configuration web interface.
|
||||||
- This is saved as comment inside the configuration file.
|
- This is saved as comment inside the configuration file.
|
||||||
|
type: str
|
||||||
digest:
|
digest:
|
||||||
description:
|
description:
|
||||||
- Specify if to prevent changes if current configuration file has different SHA1 digest.
|
- Specify if to prevent changes if current configuration file has different SHA1 digest.
|
||||||
- This can be used to prevent concurrent modifications.
|
- This can be used to prevent concurrent modifications.
|
||||||
|
type: str
|
||||||
force:
|
force:
|
||||||
description:
|
description:
|
||||||
- Allow to force stop VM.
|
- Allow to force stop VM.
|
||||||
|
@ -103,6 +119,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Target drive's backing file's data format.
|
- Target drive's backing file's data format.
|
||||||
- Used only with clone
|
- Used only with clone
|
||||||
|
type: str
|
||||||
default: qcow2
|
default: qcow2
|
||||||
choices: [ "cloop", "cow", "qcow", "qcow2", "qed", "raw", "vmdk" ]
|
choices: [ "cloop", "cow", "qcow", "qcow2", "qed", "raw", "vmdk" ]
|
||||||
freeze:
|
freeze:
|
||||||
|
@ -126,14 +143,17 @@ options:
|
||||||
- C(rombar=boolean) I(default=1) Specify whether or not the device's ROM will be visible in the guest's memory map.
|
- C(rombar=boolean) I(default=1) Specify whether or not the device's ROM will be visible in the guest's memory map.
|
||||||
- C(x-vga=boolean) I(default=0) Enable vfio-vga device support.
|
- C(x-vga=boolean) I(default=0) Enable vfio-vga device support.
|
||||||
- /!\ This option allows direct access to host hardware. So it is no longer possible to migrate such machines - use with special care.
|
- /!\ This option allows direct access to host hardware. So it is no longer possible to migrate such machines - use with special care.
|
||||||
|
type: dict
|
||||||
hotplug:
|
hotplug:
|
||||||
description:
|
description:
|
||||||
- Selectively enable hotplug features.
|
- Selectively enable hotplug features.
|
||||||
- This is a comma separated list of hotplug features C('network', 'disk', 'cpu', 'memory' and 'usb').
|
- This is a comma separated list of hotplug features C('network', 'disk', 'cpu', 'memory' and 'usb').
|
||||||
- Value 0 disables hotplug completely and value 1 is an alias for the default C('network,disk,usb').
|
- Value 0 disables hotplug completely and value 1 is an alias for the default C('network,disk,usb').
|
||||||
|
type: str
|
||||||
hugepages:
|
hugepages:
|
||||||
description:
|
description:
|
||||||
- Enable/disable hugepages memory.
|
- Enable/disable hugepages memory.
|
||||||
|
type: str
|
||||||
choices: ['any', '2', '1024']
|
choices: ['any', '2', '1024']
|
||||||
ide:
|
ide:
|
||||||
description:
|
description:
|
||||||
|
@ -143,9 +163,11 @@ options:
|
||||||
- C(storage) is the storage identifier where to create the disk.
|
- C(storage) is the storage identifier where to create the disk.
|
||||||
- C(size) is the size of the disk in GB.
|
- C(size) is the size of the disk in GB.
|
||||||
- C(format) is the drive's backing file's data format. C(qcow2|raw|subvol).
|
- C(format) is the drive's backing file's data format. C(qcow2|raw|subvol).
|
||||||
|
type: dict
|
||||||
keyboard:
|
keyboard:
|
||||||
description:
|
description:
|
||||||
- Sets the keyboard layout for VNC server.
|
- Sets the keyboard layout for VNC server.
|
||||||
|
type: str
|
||||||
kvm:
|
kvm:
|
||||||
description:
|
description:
|
||||||
- Enable/disable KVM hardware virtualization.
|
- Enable/disable KVM hardware virtualization.
|
||||||
|
@ -159,26 +181,32 @@ options:
|
||||||
lock:
|
lock:
|
||||||
description:
|
description:
|
||||||
- Lock/unlock the VM.
|
- Lock/unlock the VM.
|
||||||
|
type: str
|
||||||
choices: ['migrate', 'backup', 'snapshot', 'rollback']
|
choices: ['migrate', 'backup', 'snapshot', 'rollback']
|
||||||
machine:
|
machine:
|
||||||
description:
|
description:
|
||||||
- Specifies the Qemu machine type.
|
- Specifies the Qemu machine type.
|
||||||
- type => C((pc|pc(-i440fx)?-\d+\.\d+(\.pxe)?|q35|pc-q35-\d+\.\d+(\.pxe)?))
|
- type => C((pc|pc(-i440fx)?-\d+\.\d+(\.pxe)?|q35|pc-q35-\d+\.\d+(\.pxe)?))
|
||||||
|
type: str
|
||||||
memory:
|
memory:
|
||||||
description:
|
description:
|
||||||
- Memory size in MB for instance.
|
- Memory size in MB for instance.
|
||||||
|
type: int
|
||||||
default: 512
|
default: 512
|
||||||
migrate_downtime:
|
migrate_downtime:
|
||||||
description:
|
description:
|
||||||
- Sets maximum tolerated downtime (in seconds) for migrations.
|
- Sets maximum tolerated downtime (in seconds) for migrations.
|
||||||
|
type: int
|
||||||
migrate_speed:
|
migrate_speed:
|
||||||
description:
|
description:
|
||||||
- Sets maximum speed (in MB/s) for migrations.
|
- Sets maximum speed (in MB/s) for migrations.
|
||||||
- A value of 0 is no limit.
|
- A value of 0 is no limit.
|
||||||
|
type: int
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- Specifies the VM name. Only used on the configuration web interface.
|
- Specifies the VM name. Only used on the configuration web interface.
|
||||||
- Required only for C(state=present).
|
- Required only for C(state=present).
|
||||||
|
type: str
|
||||||
net:
|
net:
|
||||||
description:
|
description:
|
||||||
- A hash/dictionary of network interfaces for the VM. C(net='{"key":"value", "key":"value"}').
|
- A hash/dictionary of network interfaces for the VM. C(net='{"key":"value", "key":"value"}').
|
||||||
|
@ -189,15 +217,18 @@ options:
|
||||||
- The C(bridge) parameter can be used to automatically add the interface to a bridge device. The Proxmox VE standard bridge is called 'vmbr0'.
|
- The C(bridge) parameter can be used to automatically add the interface to a bridge device. The Proxmox VE standard bridge is called 'vmbr0'.
|
||||||
- Option C(rate) is used to limit traffic bandwidth from and to this interface. It is specified as floating point number, unit is 'Megabytes per second'.
|
- Option C(rate) is used to limit traffic bandwidth from and to this interface. It is specified as floating point number, unit is 'Megabytes per second'.
|
||||||
- If you specify no bridge, we create a kvm 'user' (NATed) network device, which provides DHCP and DNS services.
|
- If you specify no bridge, we create a kvm 'user' (NATed) network device, which provides DHCP and DNS services.
|
||||||
|
type: dict
|
||||||
newid:
|
newid:
|
||||||
description:
|
description:
|
||||||
- VMID for the clone. Used only with clone.
|
- VMID for the clone. Used only with clone.
|
||||||
- If newid is not set, the next available VM ID will be fetched from ProxmoxAPI.
|
- If newid is not set, the next available VM ID will be fetched from ProxmoxAPI.
|
||||||
|
type: int
|
||||||
node:
|
node:
|
||||||
description:
|
description:
|
||||||
- Proxmox VE node, where the new VM will be created.
|
- Proxmox VE node, where the new VM will be created.
|
||||||
- Only required for C(state=present).
|
- Only required for C(state=present).
|
||||||
- For other states, it will be autodiscovered.
|
- For other states, it will be autodiscovered.
|
||||||
|
type: str
|
||||||
numa:
|
numa:
|
||||||
description:
|
description:
|
||||||
- A hash/dictionaries of NUMA topology. C(numa='{"key":"value", "key":"value"}').
|
- A hash/dictionaries of NUMA topology. C(numa='{"key":"value", "key":"value"}').
|
||||||
|
@ -207,6 +238,7 @@ options:
|
||||||
- C(hostnodes) Host NUMA nodes to use.
|
- C(hostnodes) Host NUMA nodes to use.
|
||||||
- C(memory) Amount of memory this NUMA node provides.
|
- C(memory) Amount of memory this NUMA node provides.
|
||||||
- C(policy) NUMA allocation policy.
|
- C(policy) NUMA allocation policy.
|
||||||
|
type: dict
|
||||||
onboot:
|
onboot:
|
||||||
description:
|
description:
|
||||||
- Specifies whether a VM will be started during system bootup.
|
- Specifies whether a VM will be started during system bootup.
|
||||||
|
@ -216,6 +248,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Specifies guest operating system. This is used to enable special optimization/features for specific operating systems.
|
- Specifies guest operating system. This is used to enable special optimization/features for specific operating systems.
|
||||||
- The l26 is Linux 2.6/3.X Kernel.
|
- The l26 is Linux 2.6/3.X Kernel.
|
||||||
|
type: str
|
||||||
choices: ['other', 'wxp', 'w2k', 'w2k3', 'w2k8', 'wvista', 'win7', 'win8', 'win10', 'l24', 'l26', 'solaris']
|
choices: ['other', 'wxp', 'w2k', 'w2k3', 'w2k8', 'wvista', 'win7', 'win8', 'win10', 'l24', 'l26', 'solaris']
|
||||||
default: l26
|
default: l26
|
||||||
parallel:
|
parallel:
|
||||||
|
@ -223,9 +256,11 @@ options:
|
||||||
- A hash/dictionary of map host parallel devices. C(parallel='{"key":"value", "key":"value"}').
|
- A hash/dictionary of map host parallel devices. C(parallel='{"key":"value", "key":"value"}').
|
||||||
- Keys allowed are - (parallel[n]) where 0 ≤ n ≤ 2.
|
- Keys allowed are - (parallel[n]) where 0 ≤ n ≤ 2.
|
||||||
- Values allowed are - C("/dev/parport\d+|/dev/usb/lp\d+").
|
- Values allowed are - C("/dev/parport\d+|/dev/usb/lp\d+").
|
||||||
|
type: dict
|
||||||
pool:
|
pool:
|
||||||
description:
|
description:
|
||||||
- Add the new VM to the specified pool.
|
- Add the new VM to the specified pool.
|
||||||
|
type: str
|
||||||
protection:
|
protection:
|
||||||
description:
|
description:
|
||||||
- Enable/disable the protection flag of the VM. This will enable/disable the remove VM and remove disk operations.
|
- Enable/disable the protection flag of the VM. This will enable/disable the remove VM and remove disk operations.
|
||||||
|
@ -237,6 +272,7 @@ options:
|
||||||
revert:
|
revert:
|
||||||
description:
|
description:
|
||||||
- Revert a pending change.
|
- Revert a pending change.
|
||||||
|
type: str
|
||||||
sata:
|
sata:
|
||||||
description:
|
description:
|
||||||
- A hash/dictionary of volume used as sata hard disk or CD-ROM. C(sata='{"key":"value", "key":"value"}').
|
- A hash/dictionary of volume used as sata hard disk or CD-ROM. C(sata='{"key":"value", "key":"value"}').
|
||||||
|
@ -245,6 +281,7 @@ options:
|
||||||
- C(storage) is the storage identifier where to create the disk.
|
- C(storage) is the storage identifier where to create the disk.
|
||||||
- C(size) is the size of the disk in GB.
|
- C(size) is the size of the disk in GB.
|
||||||
- C(format) is the drive's backing file's data format. C(qcow2|raw|subvol).
|
- C(format) is the drive's backing file's data format. C(qcow2|raw|subvol).
|
||||||
|
type: dict
|
||||||
scsi:
|
scsi:
|
||||||
description:
|
description:
|
||||||
- A hash/dictionary of volume used as SCSI hard disk or CD-ROM. C(scsi='{"key":"value", "key":"value"}').
|
- A hash/dictionary of volume used as SCSI hard disk or CD-ROM. C(scsi='{"key":"value", "key":"value"}').
|
||||||
|
@ -253,9 +290,11 @@ options:
|
||||||
- C(storage) is the storage identifier where to create the disk.
|
- C(storage) is the storage identifier where to create the disk.
|
||||||
- C(size) is the size of the disk in GB.
|
- C(size) is the size of the disk in GB.
|
||||||
- C(format) is the drive's backing file's data format. C(qcow2|raw|subvol).
|
- C(format) is the drive's backing file's data format. C(qcow2|raw|subvol).
|
||||||
|
type: dict
|
||||||
scsihw:
|
scsihw:
|
||||||
description:
|
description:
|
||||||
- Specifies the SCSI controller model.
|
- Specifies the SCSI controller model.
|
||||||
|
type: str
|
||||||
choices: ['lsi', 'lsi53c810', 'virtio-scsi-pci', 'virtio-scsi-single', 'megasas', 'pvscsi']
|
choices: ['lsi', 'lsi53c810', 'virtio-scsi-pci', 'virtio-scsi-single', 'megasas', 'pvscsi']
|
||||||
serial:
|
serial:
|
||||||
description:
|
description:
|
||||||
|
@ -263,44 +302,54 @@ options:
|
||||||
- Keys allowed are - serial[n](str; required) where 0 ≤ n ≤ 3.
|
- Keys allowed are - serial[n](str; required) where 0 ≤ n ≤ 3.
|
||||||
- Values allowed are - C((/dev/.+|socket)).
|
- Values allowed are - C((/dev/.+|socket)).
|
||||||
- /!\ If you pass through a host serial device, it is no longer possible to migrate such machines - use with special care.
|
- /!\ If you pass through a host serial device, it is no longer possible to migrate such machines - use with special care.
|
||||||
|
type: dict
|
||||||
shares:
|
shares:
|
||||||
description:
|
description:
|
||||||
- Rets amount of memory shares for auto-ballooning. (0 - 50000).
|
- Rets amount of memory shares for auto-ballooning. (0 - 50000).
|
||||||
- The larger the number is, the more memory this VM gets.
|
- The larger the number is, the more memory this VM gets.
|
||||||
- The number is relative to weights of all other running VMs.
|
- The number is relative to weights of all other running VMs.
|
||||||
- Using 0 disables auto-ballooning, this means no limit.
|
- Using 0 disables auto-ballooning, this means no limit.
|
||||||
|
type: int
|
||||||
skiplock:
|
skiplock:
|
||||||
description:
|
description:
|
||||||
- Ignore locks
|
- Ignore locks
|
||||||
- Only root is allowed to use this option.
|
- Only root is allowed to use this option.
|
||||||
|
type: bool
|
||||||
smbios:
|
smbios:
|
||||||
description:
|
description:
|
||||||
- Specifies SMBIOS type 1 fields.
|
- Specifies SMBIOS type 1 fields.
|
||||||
|
type: str
|
||||||
snapname:
|
snapname:
|
||||||
description:
|
description:
|
||||||
- The name of the snapshot. Used only with clone.
|
- The name of the snapshot. Used only with clone.
|
||||||
|
type: str
|
||||||
sockets:
|
sockets:
|
||||||
description:
|
description:
|
||||||
- Sets the number of CPU sockets. (1 - N).
|
- Sets the number of CPU sockets. (1 - N).
|
||||||
|
type: int
|
||||||
default: 1
|
default: 1
|
||||||
startdate:
|
startdate:
|
||||||
description:
|
description:
|
||||||
- Sets the initial date of the real time clock.
|
- Sets the initial date of the real time clock.
|
||||||
- Valid format for date are C('now') or C('2016-09-25T16:01:21') or C('2016-09-25').
|
- Valid format for date are C('now') or C('2016-09-25T16:01:21') or C('2016-09-25').
|
||||||
|
type: str
|
||||||
startup:
|
startup:
|
||||||
description:
|
description:
|
||||||
- Startup and shutdown behavior. C([[order=]\d+] [,up=\d+] [,down=\d+]).
|
- Startup and shutdown behavior. C([[order=]\d+] [,up=\d+] [,down=\d+]).
|
||||||
- Order is a non-negative number defining the general startup order.
|
- Order is a non-negative number defining the general startup order.
|
||||||
- Shutdown in done with reverse ordering.
|
- Shutdown in done with reverse ordering.
|
||||||
|
type: str
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Indicates desired state of the instance.
|
- Indicates desired state of the instance.
|
||||||
- If C(current), the current state of the VM will be fetched. You can access it with C(results.status)
|
- If C(current), the current state of the VM will be fetched. You can access it with C(results.status)
|
||||||
|
type: str
|
||||||
choices: ['present', 'started', 'absent', 'stopped', 'restarted','current']
|
choices: ['present', 'started', 'absent', 'stopped', 'restarted','current']
|
||||||
default: present
|
default: present
|
||||||
storage:
|
storage:
|
||||||
description:
|
description:
|
||||||
- Target storage for full clone.
|
- Target storage for full clone.
|
||||||
|
type: str
|
||||||
tablet:
|
tablet:
|
||||||
description:
|
description:
|
||||||
- Enables/disables the USB tablet device.
|
- Enables/disables the USB tablet device.
|
||||||
|
@ -310,6 +359,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Target node. Only allowed if the original VM is on shared storage.
|
- Target node. Only allowed if the original VM is on shared storage.
|
||||||
- Used only with clone
|
- Used only with clone
|
||||||
|
type: str
|
||||||
tdf:
|
tdf:
|
||||||
description:
|
description:
|
||||||
- Enables/disables time drift fix.
|
- Enables/disables time drift fix.
|
||||||
|
@ -322,6 +372,7 @@ options:
|
||||||
timeout:
|
timeout:
|
||||||
description:
|
description:
|
||||||
- Timeout for operations.
|
- Timeout for operations.
|
||||||
|
type: int
|
||||||
default: 30
|
default: 30
|
||||||
update:
|
update:
|
||||||
description:
|
description:
|
||||||
|
@ -338,9 +389,11 @@ options:
|
||||||
vcpus:
|
vcpus:
|
||||||
description:
|
description:
|
||||||
- Sets number of hotplugged vcpus.
|
- Sets number of hotplugged vcpus.
|
||||||
|
type: int
|
||||||
vga:
|
vga:
|
||||||
description:
|
description:
|
||||||
- Select VGA type. If you want to use high resolution modes (>= 1280x1024x16) then you should use option 'std' or 'vmware'.
|
- Select VGA type. If you want to use high resolution modes (>= 1280x1024x16) then you should use option 'std' or 'vmware'.
|
||||||
|
type: str
|
||||||
choices: ['std', 'cirrus', 'vmware', 'qxl', 'serial0', 'serial1', 'serial2', 'serial3', 'qxl2', 'qxl3', 'qxl4']
|
choices: ['std', 'cirrus', 'vmware', 'qxl', 'serial0', 'serial1', 'serial2', 'serial3', 'qxl2', 'qxl3', 'qxl4']
|
||||||
default: std
|
default: std
|
||||||
virtio:
|
virtio:
|
||||||
|
@ -351,13 +404,16 @@ options:
|
||||||
- C(storage) is the storage identifier where to create the disk.
|
- C(storage) is the storage identifier where to create the disk.
|
||||||
- C(size) is the size of the disk in GB.
|
- C(size) is the size of the disk in GB.
|
||||||
- C(format) is the drive's backing file's data format. C(qcow2|raw|subvol).
|
- C(format) is the drive's backing file's data format. C(qcow2|raw|subvol).
|
||||||
|
type: dict
|
||||||
vmid:
|
vmid:
|
||||||
description:
|
description:
|
||||||
- Specifies the VM ID. Instead use I(name) parameter.
|
- Specifies the VM ID. Instead use I(name) parameter.
|
||||||
- If vmid is not set, the next available VM ID will be fetched from ProxmoxAPI.
|
- If vmid is not set, the next available VM ID will be fetched from ProxmoxAPI.
|
||||||
|
type: int
|
||||||
watchdog:
|
watchdog:
|
||||||
description:
|
description:
|
||||||
- Creates a virtual hardware watchdog device.
|
- Creates a virtual hardware watchdog device.
|
||||||
|
type: str
|
||||||
requirements: [ "proxmoxer", "requests" ]
|
requirements: [ "proxmoxer", "requests" ]
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -18,15 +18,18 @@ options:
|
||||||
api_host:
|
api_host:
|
||||||
description:
|
description:
|
||||||
- the host of the Proxmox VE cluster
|
- the host of the Proxmox VE cluster
|
||||||
|
type: str
|
||||||
required: true
|
required: true
|
||||||
api_user:
|
api_user:
|
||||||
description:
|
description:
|
||||||
- the user to authenticate with
|
- the user to authenticate with
|
||||||
|
type: str
|
||||||
required: true
|
required: true
|
||||||
api_password:
|
api_password:
|
||||||
description:
|
description:
|
||||||
- the password to authenticate with
|
- the password to authenticate with
|
||||||
- you can use PROXMOX_PASSWORD environment variable
|
- you can use PROXMOX_PASSWORD environment variable
|
||||||
|
type: str
|
||||||
validate_certs:
|
validate_certs:
|
||||||
description:
|
description:
|
||||||
- enable / disable https certificate verification
|
- enable / disable https certificate verification
|
||||||
|
@ -35,29 +38,34 @@ options:
|
||||||
node:
|
node:
|
||||||
description:
|
description:
|
||||||
- Proxmox VE node, when you will operate with template
|
- Proxmox VE node, when you will operate with template
|
||||||
|
type: str
|
||||||
required: true
|
required: true
|
||||||
src:
|
src:
|
||||||
description:
|
description:
|
||||||
- path to uploaded file
|
- path to uploaded file
|
||||||
- required only for C(state=present)
|
- required only for C(state=present)
|
||||||
aliases: ['path']
|
type: path
|
||||||
template:
|
template:
|
||||||
description:
|
description:
|
||||||
- the template name
|
- the template name
|
||||||
- required only for states C(absent), C(info)
|
- required only for states C(absent), C(info)
|
||||||
|
type: str
|
||||||
content_type:
|
content_type:
|
||||||
description:
|
description:
|
||||||
- content type
|
- content type
|
||||||
- required only for C(state=present)
|
- required only for C(state=present)
|
||||||
|
type: str
|
||||||
default: 'vztmpl'
|
default: 'vztmpl'
|
||||||
choices: ['vztmpl', 'iso']
|
choices: ['vztmpl', 'iso']
|
||||||
storage:
|
storage:
|
||||||
description:
|
description:
|
||||||
- target storage
|
- target storage
|
||||||
|
type: str
|
||||||
default: 'local'
|
default: 'local'
|
||||||
timeout:
|
timeout:
|
||||||
description:
|
description:
|
||||||
- timeout for operations
|
- timeout for operations
|
||||||
|
type: int
|
||||||
default: 30
|
default: 30
|
||||||
force:
|
force:
|
||||||
description:
|
description:
|
||||||
|
@ -67,6 +75,7 @@ options:
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Indicate desired state of the template
|
- Indicate desired state of the template
|
||||||
|
type: str
|
||||||
choices: ['present', 'absent']
|
choices: ['present', 'absent']
|
||||||
default: present
|
default: present
|
||||||
notes:
|
notes:
|
||||||
|
|
|
@ -29,6 +29,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- The password for user authentication.
|
- The password for user authentication.
|
||||||
type: str
|
type: str
|
||||||
|
required: true
|
||||||
server:
|
server:
|
||||||
description:
|
description:
|
||||||
- The name/IP of your RHEV-m/oVirt instance.
|
- The name/IP of your RHEV-m/oVirt instance.
|
||||||
|
@ -111,15 +112,18 @@ options:
|
||||||
description:
|
description:
|
||||||
- This option uses complex arguments and is a list of disks with the options name, size and domain.
|
- This option uses complex arguments and is a list of disks with the options name, size and domain.
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
ifaces:
|
ifaces:
|
||||||
description:
|
description:
|
||||||
- This option uses complex arguments and is a list of interfaces with the options name and vlan.
|
- This option uses complex arguments and is a list of interfaces with the options name and vlan.
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
aliases: [ interfaces, nics ]
|
aliases: [ interfaces, nics ]
|
||||||
boot_order:
|
boot_order:
|
||||||
description:
|
description:
|
||||||
- This option uses complex arguments and is a list of items that specify the bootorder.
|
- This option uses complex arguments and is a list of items that specify the bootorder.
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
default: [ hd, network ]
|
default: [ hd, network ]
|
||||||
del_prot:
|
del_prot:
|
||||||
description:
|
description:
|
||||||
|
@ -1480,14 +1484,14 @@ def main():
|
||||||
vmhost=dict(type='str'),
|
vmhost=dict(type='str'),
|
||||||
vmcpu=dict(type='int', default=2),
|
vmcpu=dict(type='int', default=2),
|
||||||
vmmem=dict(type='int', default=1),
|
vmmem=dict(type='int', default=1),
|
||||||
disks=dict(type='list'),
|
disks=dict(type='list', elements='str'),
|
||||||
osver=dict(type='str', default="rhel_6x64"),
|
osver=dict(type='str', default="rhel_6x64"),
|
||||||
ifaces=dict(type='list', aliases=['interfaces', 'nics']),
|
ifaces=dict(type='list', elements='str', aliases=['interfaces', 'nics']),
|
||||||
timeout=dict(type='int'),
|
timeout=dict(type='int'),
|
||||||
mempol=dict(type='int', default=1),
|
mempol=dict(type='int', default=1),
|
||||||
vm_ha=dict(type='bool', default=True),
|
vm_ha=dict(type='bool', default=True),
|
||||||
cpu_share=dict(type='int', default=0),
|
cpu_share=dict(type='int', default=0),
|
||||||
boot_order=dict(type='list', default=['hd', 'network']),
|
boot_order=dict(type='list', elements='str', default=['hd', 'network']),
|
||||||
del_prot=dict(type='bool', default=True),
|
del_prot=dict(type='bool', default=True),
|
||||||
cd_drive=dict(type='str'),
|
cd_drive=dict(type='str'),
|
||||||
),
|
),
|
||||||
|
|
|
@ -39,6 +39,7 @@ options:
|
||||||
- A list of specific functions to deploy.
|
- A list of specific functions to deploy.
|
||||||
- If this is not provided, all functions in the service will be deployed.
|
- If this is not provided, all functions in the service will be deployed.
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
default: []
|
default: []
|
||||||
region:
|
region:
|
||||||
description:
|
description:
|
||||||
|
@ -166,7 +167,7 @@ def main():
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
service_path=dict(type='path', required=True),
|
service_path=dict(type='path', required=True),
|
||||||
state=dict(type='str', default='present', choices=['absent', 'present']),
|
state=dict(type='str', default='present', choices=['absent', 'present']),
|
||||||
functions=dict(type='list'),
|
functions=dict(type='list', elements='str'),
|
||||||
region=dict(type='str', default=''),
|
region=dict(type='str', default=''),
|
||||||
stage=dict(type='str', default=''),
|
stage=dict(type='str', default=''),
|
||||||
deploy=dict(type='bool', default=True),
|
deploy=dict(type='bool', default=True),
|
||||||
|
|
|
@ -20,19 +20,23 @@ options:
|
||||||
choices: ['planned', 'present', 'absent']
|
choices: ['planned', 'present', 'absent']
|
||||||
description:
|
description:
|
||||||
- Goal state of given stage/project
|
- Goal state of given stage/project
|
||||||
|
type: str
|
||||||
default: present
|
default: present
|
||||||
binary_path:
|
binary_path:
|
||||||
description:
|
description:
|
||||||
- The path of a terraform binary to use, relative to the 'service_path'
|
- The path of a terraform binary to use, relative to the 'service_path'
|
||||||
unless you supply an absolute path.
|
unless you supply an absolute path.
|
||||||
|
type: path
|
||||||
project_path:
|
project_path:
|
||||||
description:
|
description:
|
||||||
- The path to the root of the Terraform directory with the
|
- The path to the root of the Terraform directory with the
|
||||||
vars.tf/main.tf/etc to use.
|
vars.tf/main.tf/etc to use.
|
||||||
|
type: path
|
||||||
required: true
|
required: true
|
||||||
workspace:
|
workspace:
|
||||||
description:
|
description:
|
||||||
- The terraform workspace to work with.
|
- The terraform workspace to work with.
|
||||||
|
type: str
|
||||||
default: default
|
default: default
|
||||||
purge_workspace:
|
purge_workspace:
|
||||||
description:
|
description:
|
||||||
|
@ -46,11 +50,13 @@ options:
|
||||||
- The path to an existing Terraform plan file to apply. If this is not
|
- The path to an existing Terraform plan file to apply. If this is not
|
||||||
specified, Ansible will build a new TF plan and execute it.
|
specified, Ansible will build a new TF plan and execute it.
|
||||||
Note that this option is required if 'state' has the 'planned' value.
|
Note that this option is required if 'state' has the 'planned' value.
|
||||||
|
type: path
|
||||||
state_file:
|
state_file:
|
||||||
description:
|
description:
|
||||||
- The path to an existing Terraform state file to use when building plan.
|
- The path to an existing Terraform state file to use when building plan.
|
||||||
If this is not specified, the default `terraform.tfstate` will be used.
|
If this is not specified, the default `terraform.tfstate` will be used.
|
||||||
- This option is ignored when plan is specified.
|
- This option is ignored when plan is specified.
|
||||||
|
type: path
|
||||||
variables_files:
|
variables_files:
|
||||||
description:
|
description:
|
||||||
- The path to a variables file for Terraform to fill into the TF
|
- The path to a variables file for Terraform to fill into the TF
|
||||||
|
@ -63,19 +69,24 @@ options:
|
||||||
description:
|
description:
|
||||||
- A group of key-values to override template variables or those in
|
- A group of key-values to override template variables or those in
|
||||||
variables files.
|
variables files.
|
||||||
|
type: dict
|
||||||
targets:
|
targets:
|
||||||
description:
|
description:
|
||||||
- A list of specific resources to target in this plan/application. The
|
- A list of specific resources to target in this plan/application. The
|
||||||
resources selected here will also auto-include any dependencies.
|
resources selected here will also auto-include any dependencies.
|
||||||
|
type: list
|
||||||
|
elements: str
|
||||||
lock:
|
lock:
|
||||||
description:
|
description:
|
||||||
- Enable statefile locking, if you use a service that accepts locks (such
|
- Enable statefile locking, if you use a service that accepts locks (such
|
||||||
as S3+DynamoDB) to store your statefile.
|
as S3+DynamoDB) to store your statefile.
|
||||||
type: bool
|
type: bool
|
||||||
|
default: true
|
||||||
lock_timeout:
|
lock_timeout:
|
||||||
description:
|
description:
|
||||||
- How long to maintain the lock on the statefile, if you use a service
|
- How long to maintain the lock on the statefile, if you use a service
|
||||||
that accepts locks (such as S3+DynamoDB).
|
that accepts locks (such as S3+DynamoDB).
|
||||||
|
type: int
|
||||||
force_init:
|
force_init:
|
||||||
description:
|
description:
|
||||||
- To avoid duplicating infra, if a state file can't be found this will
|
- To avoid duplicating infra, if a state file can't be found this will
|
||||||
|
@ -86,6 +97,7 @@ options:
|
||||||
backend_config:
|
backend_config:
|
||||||
description:
|
description:
|
||||||
- A group of key-values to provide at init stage to the -backend-config parameter.
|
- A group of key-values to provide at init stage to the -backend-config parameter.
|
||||||
|
type: dict
|
||||||
backend_config_files:
|
backend_config_files:
|
||||||
description:
|
description:
|
||||||
- The path to a configuration file to provide at init state to the -backend-config parameter.
|
- The path to a configuration file to provide at init state to the -backend-config parameter.
|
||||||
|
@ -281,7 +293,7 @@ def main():
|
||||||
variables_files=dict(aliases=['variables_file'], type='list', elements='path', default=None),
|
variables_files=dict(aliases=['variables_file'], type='list', elements='path', default=None),
|
||||||
plan_file=dict(type='path'),
|
plan_file=dict(type='path'),
|
||||||
state_file=dict(type='path'),
|
state_file=dict(type='path'),
|
||||||
targets=dict(type='list', default=[]),
|
targets=dict(type='list', elements='str', default=[]),
|
||||||
lock=dict(type='bool', default=True),
|
lock=dict(type='bool', default=True),
|
||||||
lock_timeout=dict(type='int',),
|
lock_timeout=dict(type='int',),
|
||||||
force_init=dict(type='bool', default=False),
|
force_init=dict(type='bool', default=False),
|
||||||
|
|
|
@ -216,30 +216,11 @@ plugins/modules/cloud/memset/memset_server_info.py validate-modules:parameter-ty
|
||||||
plugins/modules/cloud/memset/memset_zone.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/memset/memset_zone.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/cloud/memset/memset_zone_domain.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/memset/memset_zone_domain.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/cloud/memset/memset_zone_record.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/memset/memset_zone_record.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/cloud/misc/cloud_init_data_facts.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/misc/helm.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/misc/helm.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/misc/ovirt.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/cloud/misc/ovirt.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/misc/ovirt.py validate-modules:undocumented-parameter
|
|
||||||
plugins/modules/cloud/misc/proxmox.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/misc/proxmox.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:doc-default-does-not-match-spec
|
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:doc-default-does-not-match-spec
|
||||||
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:undocumented-parameter
|
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:undocumented-parameter
|
||||||
plugins/modules/cloud/misc/proxmox_template.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/misc/proxmox_template.py validate-modules:doc-required-mismatch
|
plugins/modules/cloud/misc/proxmox_template.py validate-modules:doc-required-mismatch
|
||||||
plugins/modules/cloud/misc/proxmox_template.py validate-modules:nonexistent-parameter-documented
|
|
||||||
plugins/modules/cloud/misc/proxmox_template.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/misc/rhevm.py validate-modules:doc-required-mismatch
|
|
||||||
plugins/modules/cloud/misc/rhevm.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/cloud/misc/rhevm.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/cloud/misc/rhevm.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/cloud/misc/serverless.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/cloud/misc/terraform.py validate-modules:doc-default-does-not-match-spec
|
|
||||||
plugins/modules/cloud/misc/terraform.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/misc/terraform.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/cloud/misc/terraform.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/misc/terraform.py validate-modules:return-syntax-error
|
plugins/modules/cloud/misc/terraform.py validate-modules:return-syntax-error
|
||||||
plugins/modules/cloud/oneandone/oneandone_firewall_policy.py validate-modules:doc-required-mismatch
|
plugins/modules/cloud/oneandone/oneandone_firewall_policy.py validate-modules:doc-required-mismatch
|
||||||
plugins/modules/cloud/oneandone/oneandone_firewall_policy.py validate-modules:parameter-list-no-elements
|
plugins/modules/cloud/oneandone/oneandone_firewall_policy.py validate-modules:parameter-list-no-elements
|
||||||
|
|
|
@ -216,30 +216,11 @@ plugins/modules/cloud/memset/memset_server_info.py validate-modules:parameter-ty
|
||||||
plugins/modules/cloud/memset/memset_zone.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/memset/memset_zone.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/cloud/memset/memset_zone_domain.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/memset/memset_zone_domain.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/cloud/memset/memset_zone_record.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/memset/memset_zone_record.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/cloud/misc/cloud_init_data_facts.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/misc/helm.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/misc/helm.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/misc/ovirt.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/cloud/misc/ovirt.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/misc/ovirt.py validate-modules:undocumented-parameter
|
|
||||||
plugins/modules/cloud/misc/proxmox.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/misc/proxmox.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:doc-default-does-not-match-spec
|
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:doc-default-does-not-match-spec
|
||||||
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:undocumented-parameter
|
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:undocumented-parameter
|
||||||
plugins/modules/cloud/misc/proxmox_template.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/misc/proxmox_template.py validate-modules:doc-required-mismatch
|
plugins/modules/cloud/misc/proxmox_template.py validate-modules:doc-required-mismatch
|
||||||
plugins/modules/cloud/misc/proxmox_template.py validate-modules:nonexistent-parameter-documented
|
|
||||||
plugins/modules/cloud/misc/proxmox_template.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/misc/rhevm.py validate-modules:doc-required-mismatch
|
|
||||||
plugins/modules/cloud/misc/rhevm.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/cloud/misc/rhevm.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/cloud/misc/rhevm.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/cloud/misc/serverless.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/cloud/misc/terraform.py validate-modules:doc-default-does-not-match-spec
|
|
||||||
plugins/modules/cloud/misc/terraform.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/misc/terraform.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/cloud/misc/terraform.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/misc/terraform.py validate-modules:return-syntax-error
|
plugins/modules/cloud/misc/terraform.py validate-modules:return-syntax-error
|
||||||
plugins/modules/cloud/oneandone/oneandone_firewall_policy.py validate-modules:doc-required-mismatch
|
plugins/modules/cloud/oneandone/oneandone_firewall_policy.py validate-modules:doc-required-mismatch
|
||||||
plugins/modules/cloud/oneandone/oneandone_firewall_policy.py validate-modules:parameter-list-no-elements
|
plugins/modules/cloud/oneandone/oneandone_firewall_policy.py validate-modules:parameter-list-no-elements
|
||||||
|
|
|
@ -149,28 +149,13 @@ plugins/modules/cloud/memset/memset_server_info.py validate-modules:parameter-ty
|
||||||
plugins/modules/cloud/memset/memset_zone.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/memset/memset_zone.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/cloud/memset/memset_zone_domain.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/memset/memset_zone_domain.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/cloud/memset/memset_zone_record.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/memset/memset_zone_record.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/cloud/misc/cloud_init_data_facts.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/misc/helm.py validate-modules:deprecation-mismatch
|
plugins/modules/cloud/misc/helm.py validate-modules:deprecation-mismatch
|
||||||
plugins/modules/cloud/misc/helm.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/misc/helm.py validate-modules:invalid-documentation
|
plugins/modules/cloud/misc/helm.py validate-modules:invalid-documentation
|
||||||
plugins/modules/cloud/misc/helm.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/misc/ovirt.py validate-modules:deprecation-mismatch
|
plugins/modules/cloud/misc/ovirt.py validate-modules:deprecation-mismatch
|
||||||
plugins/modules/cloud/misc/ovirt.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/cloud/misc/ovirt.py validate-modules:invalid-documentation
|
plugins/modules/cloud/misc/ovirt.py validate-modules:invalid-documentation
|
||||||
plugins/modules/cloud/misc/ovirt.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/misc/ovirt.py validate-modules:undocumented-parameter
|
|
||||||
plugins/modules/cloud/misc/proxmox.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/misc/proxmox.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:doc-default-does-not-match-spec
|
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:doc-default-does-not-match-spec
|
||||||
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:undocumented-parameter
|
plugins/modules/cloud/misc/proxmox_kvm.py validate-modules:undocumented-parameter
|
||||||
plugins/modules/cloud/misc/proxmox_template.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/misc/proxmox_template.py validate-modules:nonexistent-parameter-documented
|
|
||||||
plugins/modules/cloud/misc/proxmox_template.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/misc/terraform.py validate-modules:doc-default-does-not-match-spec
|
|
||||||
plugins/modules/cloud/misc/terraform.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/misc/terraform.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/cloud/oneandone/oneandone_firewall_policy.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/oneandone/oneandone_firewall_policy.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/cloud/oneandone/oneandone_load_balancer.py validate-modules:doc-default-does-not-match-spec
|
plugins/modules/cloud/oneandone/oneandone_load_balancer.py validate-modules:doc-default-does-not-match-spec
|
||||||
plugins/modules/cloud/oneandone/oneandone_load_balancer.py validate-modules:doc-missing-type
|
plugins/modules/cloud/oneandone/oneandone_load_balancer.py validate-modules:doc-missing-type
|
||||||
|
|
Loading…
Reference in a new issue