Skip to content

Commit

Permalink
Libvirt provider v0.8.1 (#1777)
Browse files Browse the repository at this point in the history
* Upgrade terraform-libvirt-provider to v0.8.1

* Explicitly set DNS to disabled

* Cleanup README
  • Loading branch information
NamelessOne91 authored Feb 18, 2025
1 parent 3fee591 commit 32383e7
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

**Terraform version**: 1.0.10

**Libvirt provider version**: 0.6.3
**Libvirt provider version**: 0.8.1

NOTE: to deploy development versions of SUSE Manager you will have to have [SUSE's internal CA certificates](http://ca.suse.de/) installed on your system.

Expand Down
4 changes: 2 additions & 2 deletions TROUBLESHOOTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,12 @@ Initializing provider plugins...
- Reusing previous version of hashicorp/null from the dependency lock file
- Reusing previous version of hashicorp/template from the dependency lock file
- Using previously-installed hashicorp/template v2.2.0
- Installing dmacvicar/libvirt v0.6.3...
- Installing dmacvicar/libvirt v0.8.1...
- Using previously-installed hashicorp/null v3.1.0
│ Error: Failed to install provider
│ Error while installing dmacvicar/libvirt v0.6.3: the local package for registry.terraform.io/dmacvicar/libvirt 0.6.3 doesn't match any of the checksums previously recorded in the dependency lock file (this might be because the available checksums are for packages
│ Error while installing dmacvicar/libvirt v0.8.1: the local package for registry.terraform.io/dmacvicar/libvirt 0.8.1 doesn't match any of the checksums previously recorded in the dependency lock file (this might be because the available checksums are for packages
│ targeting different platforms)
```
Expand Down
3 changes: 3 additions & 0 deletions backend_modules/libvirt/base/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ resource "libvirt_network" "additional_network" {
name = "${var.name_prefix}private"
mode = "none"
addresses = [local.additional_network]
dns {
enabled = "false"
}
dhcp {
enabled = "false"
}
Expand Down
2 changes: 1 addition & 1 deletion backend_modules/libvirt/base/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
libvirt = {
source = "dmacvicar/libvirt"
version = "0.6.3"
version = "0.8.1"
}
}
}
2 changes: 1 addition & 1 deletion backend_modules/libvirt/host/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ resource "libvirt_domain" "domain" {
qemu_agent = true

// copy host CPU model to guest to get the vmx flag if present
cpu = {
cpu {
mode = local.provider_settings["cpu_model"]
}

Expand Down
4 changes: 2 additions & 2 deletions backend_modules/libvirt/host/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
}
libvirt = {
source = "dmacvicar/libvirt"
version = "0.6.3"
version = "0.8.1"
}
}
}
}
2 changes: 1 addition & 1 deletion main.tf.libvirt-testsuite.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
libvirt = {
source = "dmacvicar/libvirt"
version = "0.6.3"
version = "0.8.1"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion main.tf.libvirt-testsuite.example.Manager-43
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
libvirt = {
source = "dmacvicar/libvirt"
version = "0.6.3"
version = "0.8.1"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion main.tf.libvirt.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
libvirt = {
source = "dmacvicar/libvirt"
version = "0.6.3"
version = "0.8.1"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion main.tf.libvirt.example.Manager-43
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
libvirt = {
source = "dmacvicar/libvirt"
version = "0.6.3"
version = "0.8.1"
}
}
}
Expand Down
4 changes: 0 additions & 4 deletions modules/dhcp_dns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,3 @@ to repositories, nor the Internet in general. This is why it is prepared
directly from the hypervisor. As a consequence, the jenkins workers must
drop the public SSH key of their "jenkins" user into the authorized hosts
file of the hypervisor. Or, if you are testing yourself, drop your own key.

If the hypervisor runs SLES 15 SP6 at least, you may also need to
hack sshd for it to accept RSA keys, since old versions of the
terraform libvirt provider (like 0.6.3) only work with RSA keys.

0 comments on commit 32383e7

Please sign in to comment.