Compare commits

..

2 Commits

Author SHA1 Message Date
507c4f2085 docs updated
Some checks failed
continuous-integration/drone/push Build is failing
2025-02-19 01:27:49 +01:00
f4b22647c4 feat(lawndale-vm): extra network interfaces 2025-02-19 01:24:08 +01:00
4 changed files with 35 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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 = []
}