https://github.com/k-candidate/tf-module-kvm-network
Terraform module to create a KVM network via libvirt
https://github.com/k-candidate/tf-module-kvm-network
kvm libvirt libvirt-provider terraform terraform-module tfsec
Last synced: about 2 months ago
JSON representation
Terraform module to create a KVM network via libvirt
- Host: GitHub
- URL: https://github.com/k-candidate/tf-module-kvm-network
- Owner: k-candidate
- Created: 2024-12-02T12:57:20.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-01-17T00:28:22.000Z (4 months ago)
- Last Synced: 2025-02-10T04:28:34.626Z (3 months ago)
- Topics: kvm, libvirt, libvirt-provider, terraform, terraform-module, tfsec
- Language: HCL
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tf-module-kvm-network
Terraform module to create a KVM network via libvirt.Examples:
- [https://github.com/k-candidate/tf-kvm-network-nat](https://github.com/k-candidate/tf-kvm-network-nat)## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.10.0 |
| [libvirt](#requirement\_libvirt) | ~> 0.8.1 |## Providers
| Name | Version |
|------|---------|
| [libvirt](#provider\_libvirt) | ~> 0.8.1 |## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [libvirt_network.this](https://registry.terraform.io/providers/dmacvicar/libvirt/latest/docs/resources/network) | resource |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [dns\_enabled](#input\_dns\_enabled) | If disabled, no dns will be setup for this network and dns configuration will be ignored | `bool` | `true` | no |
| [dns\_local\_only](#input\_dns\_local\_only) | true: DNS requests under this domain will only be resolved by the virtual network's own DNS server. false: Unresolved requests will be forwarded to the host's upstream DNS server if the virtual network's DNS server does not have an answer. | `bool` | `true` | no |
| [libvirt\_uri](#input\_libvirt\_uri) | The URI to connect to the libvirt daemon | `string` | `"qemu:///session"` | no |
| [network\_addresses](#input\_network\_addresses) | A list of subnets in CIDR notation | `list(any)` | n/a | yes |
| [network\_autostart](#input\_network\_autostart) | Start the network on host boot up | `bool` | `true` | no |
| [network\_domain](#input\_network\_domain) | The domain used by the DNS server | `string` | n/a | yes |
| [network\_mode](#input\_network\_mode) | The mode of the network. Possible modes: nat (Default), none, route, open, bridge | `string` | n/a | yes |
| [network\_name](#input\_network\_name) | The name of the network | `string` | n/a | yes |## Outputs
No outputs.