remove libvirt data volume
This commit is contained in:
parent
1f0c6e25ec
commit
56d4c1491d
1 changed files with 0 additions and 30 deletions
|
@ -1,30 +0,0 @@
|
|||
terraform {
|
||||
backend "pg" {
|
||||
schema_name = "hermes-data"
|
||||
conn_str = "postgres://terraform@10.42.0.1/terraform_state"
|
||||
}
|
||||
|
||||
required_providers {
|
||||
libvirt = {
|
||||
source = "dmacvicar/libvirt"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "libvirt" {
|
||||
uri = "qemu+ssh://root@atlas.hyp/system"
|
||||
}
|
||||
|
||||
resource "libvirt_volume" "data" {
|
||||
name = "hermes-data"
|
||||
pool = "data"
|
||||
size = 1024 * 1024
|
||||
|
||||
lifecycle {
|
||||
prevent_destroy = true
|
||||
}
|
||||
}
|
||||
|
||||
output "data_disk_id" {
|
||||
value = libvirt_volume.data.id
|
||||
}
|
Reference in a new issue