File tree 6 files changed +9
-4
lines changed
terraform-libvirt-instance
terraform-libvirt-network
terraform-libvirt-network
6 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
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"
3
4
instance_count = 2
4
5
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"
5
6
instance_type = " linux"
Original file line number Diff line number Diff line change 1
1
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"
3
4
network_autostart = true
4
5
network_name = " example_network"
5
6
network_mode = " nat"
Original file line number Diff line number Diff line change 1
1
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"
3
4
pool_name = " my_pool"
4
5
pool_path = " /path/to/pool"
5
6
}
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ variable "network_autostart" {
7
7
variable "network_name" {
8
8
description = " Name of the libvirt network"
9
9
type = string
10
+ default = " default"
10
11
}
11
12
12
13
variable "network_mode" {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ This Terraform module creates a libvirt pool with customizable configurations.
8
8
9
9
| Variable Name | Description | Required | Default Value |
10
10
| -------------- | ---------------------------------- | -------- | -------------------------- |
11
- | ` pool_name ` | Name of the libvirt pool | ✔️ | |
11
+ | ` pool_name ` | Name of the libvirt pool | ❌ | |
12
12
| ` pool_path ` | Path for the libvirt pool | ❌ | ` /var/lib/libvirt/images ` |
13
13
14
14
ℹ️ Icons: ✔️ - Required, ❌ - Optional
Original file line number Diff line number Diff line change 1
1
variable "pool_name" {
2
2
description = " Name of the libvirt pool"
3
3
type = string
4
+ default = " default"
4
5
}
5
6
6
7
variable "pool_path" {
You can’t perform that action at this time.
0 commit comments