mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-09-22 05:54:42 -04:00
Update Terraform libvirt to v0.7.0 (#304)
* Update Terraform libvirt to v0.7.0 * Use disk block * Remove nulled disk options Signed-off-by: Daniel Weiße <dw@edgeless.systems> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
parent
0c0a83550d
commit
c85dc674ba
2 changed files with 9 additions and 22 deletions
|
@ -2,7 +2,7 @@ terraform {
|
||||||
required_providers {
|
required_providers {
|
||||||
libvirt = {
|
libvirt = {
|
||||||
source = "dmacvicar/libvirt"
|
source = "dmacvicar/libvirt"
|
||||||
version = "0.6.14"
|
version = "0.7.0"
|
||||||
}
|
}
|
||||||
docker = {
|
docker = {
|
||||||
source = "kreuzwerker/docker"
|
source = "kreuzwerker/docker"
|
||||||
|
|
|
@ -2,7 +2,7 @@ terraform {
|
||||||
required_providers {
|
required_providers {
|
||||||
libvirt = {
|
libvirt = {
|
||||||
source = "dmacvicar/libvirt"
|
source = "dmacvicar/libvirt"
|
||||||
version = "0.6.14"
|
version = "0.7.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,26 +22,13 @@ resource "libvirt_domain" "instance_group" {
|
||||||
backend_type = "emulator"
|
backend_type = "emulator"
|
||||||
backend_version = "2.0"
|
backend_version = "2.0"
|
||||||
}
|
}
|
||||||
disk = [
|
disk {
|
||||||
{
|
volume_id = element(libvirt_volume.boot_volume.*.id, count.index)
|
||||||
volume_id = element(libvirt_volume.boot_volume.*.id, count.index)
|
scsi = true
|
||||||
scsi : true,
|
}
|
||||||
// fix for https://github.com/dmacvicar/terraform-provider-libvirt/issues/728
|
disk {
|
||||||
block_device : null,
|
volume_id = element(libvirt_volume.state_volume.*.id, count.index)
|
||||||
file : null,
|
}
|
||||||
url : null,
|
|
||||||
wwn : null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
volume_id = element(libvirt_volume.state_volume.*.id, count.index)
|
|
||||||
// fix for https://github.com/dmacvicar/terraform-provider-libvirt/issues/728
|
|
||||||
block_device : null,
|
|
||||||
file : null,
|
|
||||||
scsi : null,
|
|
||||||
url : null,
|
|
||||||
wwn : null
|
|
||||||
},
|
|
||||||
]
|
|
||||||
network_interface {
|
network_interface {
|
||||||
network_id = var.network_id
|
network_id = var.network_id
|
||||||
hostname = "${var.role}-${count.index}"
|
hostname = "${var.role}-${count.index}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue