Compare commits
2 Commits
69408d9be8
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 507c4f2085 | |||
| f4b22647c4 |
@@ -8,7 +8,7 @@ The following requirements are needed by this module:
|
||||
|
||||
The following providers are used by this module:
|
||||
|
||||
- <a name="provider_dns"></a> [dns](#provider\_dns) (~> 3.2)
|
||||
- <a name="provider_dns"></a> [dns](#provider\_dns) (3.2.3)
|
||||
|
||||
## Modules
|
||||
|
||||
|
||||
@@ -10,9 +10,9 @@ The following requirements are needed by this module:
|
||||
|
||||
The following providers are used by this module:
|
||||
|
||||
- <a name="provider_libvirt"></a> [libvirt](#provider\_libvirt) (>= 0.6.14)
|
||||
- <a name="provider_libvirt"></a> [libvirt](#provider\_libvirt) (0.7.0)
|
||||
|
||||
- <a name="provider_macaddress"></a> [macaddress](#provider\_macaddress) (~> 0.3.0)
|
||||
- <a name="provider_macaddress"></a> [macaddress](#provider\_macaddress) (0.3.2)
|
||||
|
||||
## Modules
|
||||
|
||||
@@ -112,6 +112,21 @@ Type: `bool`
|
||||
|
||||
Default: `true`
|
||||
|
||||
### <a name="input_extra_interfaces"></a> [extra\_interfaces](#input\_extra\_interfaces)
|
||||
|
||||
Description: Extra network interfaces to attach to the VM
|
||||
|
||||
Type:
|
||||
|
||||
```hcl
|
||||
list(object({
|
||||
bridge = string
|
||||
mac = string
|
||||
}))
|
||||
```
|
||||
|
||||
Default: `[]`
|
||||
|
||||
### <a name="input_filesystems"></a> [filesystems](#input\_filesystems)
|
||||
|
||||
Description: 9p shared filesystem devices
|
||||
|
||||
@@ -47,6 +47,13 @@ resource "libvirt_domain" "this" {
|
||||
bridge = module.ipam.lawndale_interface
|
||||
mac = macaddress.this.address
|
||||
}
|
||||
dynamic "network_interface" {
|
||||
for_each = var.extra_interfaces
|
||||
content {
|
||||
bridge = network_interface.value.bridge
|
||||
mac = network_interface.value.mac
|
||||
}
|
||||
}
|
||||
|
||||
disk {
|
||||
volume_id = libvirt_volume.this.id
|
||||
|
||||
@@ -122,3 +122,13 @@ variable "xslt" {
|
||||
description = "XSLT applied to the domain before sent to libvirt"
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "extra_interfaces" {
|
||||
type = list(object({
|
||||
bridge = string
|
||||
mac = string
|
||||
}))
|
||||
|
||||
description = "Extra network interfaces to attach to the VM"
|
||||
default = []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user