5.1 KiB
Requirements
The following requirements are needed by this module:
-
libvirt (>= 0.6.14)
-
macaddress (~> 0.3.0)
Providers
The following providers are used by this module:
-
libvirt (>= 0.6.14)
-
macaddress (~> 0.3.0)
Modules
The following Modules are called:
ipam
Source: git@git.thomasklein.me:thomasklein/terraform-modules//lawndale-vm-ipam
Version:
Resources
The following resources are used by this module:
- libvirt_cloudinit_disk.this (resource)
- libvirt_domain.this (resource)
- libvirt_pool.this (resource)
- libvirt_volume.this (resource)
- macaddress_macaddress.this (resource)
Required Inputs
The following input variables are required:
base_image_pool
Description: Base image storage pool
Type: string
base_image_volume
Description: Base image storage pool
Type: string
description
Description: (Short) Description for the virtual machine
Type: string
id
Description: The lawndale id of the virtual machine
Type: number
interface
Description: Network interface to attach the vm on
Type: string
memory_mb
Description: VM memory allocation in megabytes
Type: number
name
Description: The name of the virtual machine (must be a [-_a-z0-9])
Type: string
root_storage_volume_size_gb
Description: The size of the storage volume (in gigabytes)
Type: number
user_data
Description: Cloud-init userdata script to run
Type: string
Optional Inputs
The following input variables are optional (have default values):
autostart
Description: Start the VM at host start?
Type: bool
Default: true
create_root_storage_pool
Description: Create the storage pool as part of the module
Type: bool
Default: true
filesystems
Description: 9p shared filesystem devices
Type:
list(object({
source = string
target = string
accessmode = string
readonly = bool
}))
Default: []
machine
Description: The machine type - can be i440fx (default) or q35. PCIe support requires Q35 (or better)
Type: string
Default: null
meta_data
Description: Cloud-init meta-data
Type: string
Default: null
network_config
Description: Cloud-init network config
Type: string
Default: null
root_storage_pool
Description: The name of the storage pool. It will default to the VM name
Type: string
Default: ""
root_storage_volume_name
Description: the name of the storage volume (must be unique in the pool)
Type: string
Default: ""
uefi
Description: Whether or not to create an UEFI domain
Type: bool
Default: false
vcpu
Description: CPU count
Type: number
Default: 1
xslt
Description: XSLT applied to the domain before sent to libvirt
Type: string
Default: null
Outputs
The following outputs are exported:
_disk
Description: n/a
_domain
Description: n/a
_pool
Description: n/a
ipam
Description: n/a
macaddress
Description: n/a