Skip to content

Commit f0c18f8

Browse files
committed
fix defaults
1 parent 2878f1d commit f0c18f8

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed

examples/terraform-libvirt-instance/main.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module "instance_provisioning" {
2-
source = "github.com/kubealex/terraform-libvirt//modules/terraform-libvirt-instance"
2+
source = "kubealex/libvirt-resources/libvirt//modules/terraform-libvirt-pool"
3+
version = "0.0.1"
34
instance_count = 2
45
instance_cloud_image = "https://download.fedoraproject.org/pub/fedora/linux/releases/39/Cloud/x86_64/images/Fedora-Cloud-Base-39-1.5.x86_64.qcow2"
56
instance_type = "linux"

examples/terraform-libvirt-network/main.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module "libvirt_network" {
2-
source = "github.com/kubealex/terraform-libvirt//modules/terraform-libvirt-network"
2+
source = "kubealex/libvirt-resources/libvirt//modules/terraform-libvirt-pool"
3+
version = "0.0.1"
34
network_autostart = true
45
network_name = "example_network"
56
network_mode = "nat"
+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module "libvirt_pool" {
2-
source = "github.com/kubealex/terraform-libvirt//modules/terraform-libvirt-pool"
2+
source = "kubealex/libvirt-resources/libvirt//modules/terraform-libvirt-pool"
3+
version = "0.0.1"
34
pool_name = "my_pool"
45
pool_path = "/path/to/pool"
56
}

modules/terraform-libvirt-network/variables.tf

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ variable "network_autostart" {
77
variable "network_name" {
88
description = "Name of the libvirt network"
99
type = string
10+
default = "default"
1011
}
1112

1213
variable "network_mode" {

modules/terraform-libvirt-pool/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This Terraform module creates a libvirt pool with customizable configurations.
88

99
| Variable Name | Description | Required | Default Value |
1010
| -------------- | ---------------------------------- | -------- | -------------------------- |
11-
| `pool_name` | Name of the libvirt pool | ✔️ | |
11+
| `pool_name` | Name of the libvirt pool | | |
1212
| `pool_path` | Path for the libvirt pool || `/var/lib/libvirt/images` |
1313

1414
ℹ️ Icons: ✔️ - Required, ❌ - Optional

modules/terraform-libvirt-pool/variables.tf

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
variable "pool_name" {
22
description = "Name of the libvirt pool"
33
type = string
4+
default = "default"
45
}
56

67
variable "pool_path" {

0 commit comments

Comments
 (0)