diff --git a/00-provider.tf b/00-provider.tf index eb328f9..27e01ac 100644 --- a/00-provider.tf +++ b/00-provider.tf @@ -1,6 +1,6 @@ /* Copyright 2023 Schwarz IT KG -Copyright 2024 STACKIT GmbH & Co. KG +Copyright 2024-2025 STACKIT GmbH & Co. KG Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at @@ -12,14 +12,14 @@ terraform { required_version = ">= 0.14.0" required_providers { stackit = { - source = "stackitcloud/stackit" + source = "stackitcloud/stackit" version = "0.47.0" } } } provider "stackit" { - default_region = "eu01" + default_region = "eu01" service_account_token = var.STACKIT_SERVICE_ACCOUNT_TOKEN enable_beta_resources = true } diff --git a/01-config.tf b/01-config.tf index a781d41..d40505c 100644 --- a/01-config.tf +++ b/01-config.tf @@ -1,6 +1,6 @@ /* Copyright 2023 Schwarz IT KG -Copyright 2024 STACKIT GmbH & Co. KG +Copyright 2024-2025 STACKIT GmbH & Co. KG Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at @@ -42,4 +42,4 @@ variable "STACKIT_PROJECT_ID" { variable "STACKIT_SERVICE_ACCOUNT_TOKEN" { type = string description = "" -} \ No newline at end of file +} diff --git a/02-pfsense-image.tf b/02-pfsense-image.tf index fc38186..b0555b0 100644 --- a/02-pfsense-image.tf +++ b/02-pfsense-image.tf @@ -1,6 +1,6 @@ /* Copyright 2023 Schwarz IT KG -Copyright 2024 STACKIT GmbH & Co. KG +Copyright 2024-2025 STACKIT GmbH & Co. KG Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at @@ -9,7 +9,7 @@ https://opensource.org/licenses/MIT. # Local copy of the Image resource "null_resource" "pfsense_image_file" { - triggers = { + triggers = { always_run = timestamp() } @@ -20,14 +20,14 @@ resource "null_resource" "pfsense_image_file" { # Upload VPN Appliance Image to STACKIT resource "stackit_image" "pfsense_image" { - project_id = var.STACKIT_PROJECT_ID - name = "pfsense-2.7.2-amd64-image" - local_file_path = "./pfsense.qcow2" - disk_format = "qcow2" - depends_on = [null_resource.pfsense_image_file] - min_disk_size = 10 - min_ram = 2 + project_id = var.STACKIT_PROJECT_ID + name = "pfsense-2.7.2-amd64-image" + local_file_path = "./pfsense.qcow2" + disk_format = "qcow2" + depends_on = [null_resource.pfsense_image_file] + min_disk_size = 10 + min_ram = 2 config = { - uefi = false + uefi = false } } diff --git a/03-pfsense-network.tf b/03-pfsense-network.tf index 447c3fe..2e997a4 100644 --- a/03-pfsense-network.tf +++ b/03-pfsense-network.tf @@ -1,6 +1,6 @@ /* Copyright 2023 Schwarz IT KG -Copyright 2024 STACKIT GmbH & Co. KG +Copyright 2024-2025 STACKIT GmbH & Co. KG Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at diff --git a/04-pfsense-appliance.tf b/04-pfsense-appliance.tf index 986329c..81751c4 100644 --- a/04-pfsense-appliance.tf +++ b/04-pfsense-appliance.tf @@ -14,9 +14,9 @@ resource "stackit_volume" "pfsense_vol" { size = 16 performance_class = "storage_premium_perf4" source = { - id = stackit_image.pfsense_image.image_id + id = stackit_image.pfsense_image.image_id type = "image" - } + } } resource "stackit_server" "pfsense_Server" { @@ -34,10 +34,10 @@ resource "stackit_server_network_interface_attach" "nic-attachment-lan" { project_id = var.STACKIT_PROJECT_ID server_id = stackit_server.pfsense_Server.server_id network_interface_id = stackit_network_interface.nic_lan.network_interface_id - depends_on = [ stackit_server_network_interface_attach.nic-attachment-wan ] + depends_on = [stackit_server_network_interface_attach.nic-attachment-wan] } resource "stackit_server_network_interface_attach" "nic-attachment-wan" { project_id = var.STACKIT_PROJECT_ID server_id = stackit_server.pfsense_Server.server_id network_interface_id = stackit_network_interface.nic_wan.network_interface_id -} \ No newline at end of file +}