chore(ci): add command to fmt testdata terraform files (#1042)

This commit is contained in:
Mauritz Uphoff 2025-11-06 18:01:44 +01:00 committed by GitHub
parent 4552b14edd
commit a81b7d49e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 46 additions and 46 deletions

View file

@ -27,7 +27,7 @@ data "stackit_image_v2" "filter_uefi_ubuntu" {
project_id = var.project_id
filter = {
distro = "ubuntu"
uefi = true
uefi = true
}
}
@ -35,9 +35,9 @@ data "stackit_image_v2" "name_regex_and_filter_rhel_9_1" {
project_id = var.project_id
name_regex = "^Red Hat Enterprise Linux 9.1$"
filter = {
distro = "rhel"
distro = "rhel"
version = "9.1"
uefi = true
uefi = true
}
}

View file

@ -9,13 +9,13 @@ variable "routed" {}
variable "label" {}
resource "stackit_network" "network_prefix" {
project_id = var.project_id
name = var.name
ipv4_gateway = var.ipv4_gateway != "" ? var.ipv4_gateway : null
no_ipv4_gateway = var.ipv4_gateway != "" ? null : true
ipv4_nameservers = [var.ipv4_nameserver_0, var.ipv4_nameserver_1]
ipv4_prefix = var.ipv4_prefix
routed = var.routed
project_id = var.project_id
name = var.name
ipv4_gateway = var.ipv4_gateway != "" ? var.ipv4_gateway : null
no_ipv4_gateway = var.ipv4_gateway != "" ? null : true
ipv4_nameservers = [var.ipv4_nameserver_0, var.ipv4_nameserver_1]
ipv4_prefix = var.ipv4_prefix
routed = var.routed
labels = {
"acc-test" : var.label
}

View file

@ -24,8 +24,8 @@ variable "network_area_id" {}
# }
resource "stackit_network" "network_prefix_length" {
project_id = var.project_id
name = var.name
project_id = var.project_id
name = var.name
# no_ipv4_gateway = true
ipv4_nameservers = [var.ipv4_nameserver_0, var.ipv4_nameserver_1]
ipv4_prefix_length = var.ipv4_prefix_length

View file

@ -24,7 +24,7 @@ resource "stackit_volume" "volume_source" {
name = var.name
description = var.description
performance_class = var.performance_class
size = var.size
size = var.size
source = {
id = stackit_volume.volume_size.volume_id
type = "volume"