File tree 5 files changed +6
-6
lines changed
examples/terraform-libvirt-network
terraform-libvirt-instance
terraform-libvirt-network
5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
module "libvirt_network" {
2
2
source = " github.com/kubealex/terraform-libvirt//modules/terraform-libvirt-network"
3
3
network_autostart = true
4
- network = " example_network"
4
+ network_name = " example_network"
5
5
network_mode = " nat"
6
6
network_domain = " example.com"
7
7
network_cidr = [" 192.168.122.0/24" ]
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ This Terraform module provisions virtual instances with customizable configurati
37
37
38
38
| Sub-Variable | Description | Required | Default Value |
39
39
| ---------------------------- | -------------------------------------------------- | -------- | ------------- |
40
- | ` interface_network_name ` | Name of the network to attach the interface to | ✔️ | |
40
+ | ` interface_network ` | Name of the network to attach the interface to | ✔️ | |
41
41
| ` interface_mac_address ` | MAC address of the network interface | ❌ | |
42
42
| ` interface_addresses ` | List of IP addresses for the network interface | ❌ | ` [] ` (empty list) |
43
43
| ` interface_hostname ` | Hostname for the network interface | ❌ | |
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ resource "libvirt_domain" "service-vm" {
87
87
dynamic "network_interface" {
88
88
for_each = var. instance_network_interfaces
89
89
content {
90
- network_name = network_interface. value . interface_name
90
+ network_name = network_interface. value . interface_network
91
91
hostname = network_interface. value . interface_hostname
92
92
addresses = network_interface. value . interface_addresses
93
93
mac = network_interface. value . interface_mac_address
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ variable "instance_uefi_enabled" {
98
98
99
99
variable "instance_network_interfaces" {
100
100
type = list (object ({
101
- interface_name = string
101
+ interface_network = string
102
102
interface_mac_address = string
103
103
interface_addresses = list (string )
104
104
interface_hostname = string
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ resource "libvirt_network" "vm_network" {
13
13
14
14
dynamic "hosts" {
15
15
for_each = concat (
16
- data. network_dns_host_template . hosts . * . rendered
16
+ data. libvirt_network_dns_host_template . hosts . * . rendered
17
17
)
18
18
content {
19
19
hostname = hosts. value . hostname
@@ -26,7 +26,7 @@ resource "libvirt_network" "vm_network" {
26
26
dnsmasq_options {
27
27
dynamic "options" {
28
28
for_each = concat (
29
- data. network_dnsmasq_options_template . options . * . rendered ,
29
+ data. libvirt_network_dnsmasq_options_template . options . * . rendered ,
30
30
)
31
31
content {
32
32
option_name = options. value . option_name
You can’t perform that action at this time.
0 commit comments