An open API service indexing awesome lists of open source software.

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

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.