File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed
prod-stackit/terraform/50_projects/team-iac-test01/modules/firewall Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 1+ # Local copy of the Image
2+ resource "null_resource" "pfsense_image_file" {
3+ triggers = {
4+ always_run = timestamp ()
5+ }
6+
7+ provisioner "local-exec" {
8+ command = " curl -o pfsense.qcow2 https://pfsense.object.storage.eu01.onstackit.cloud/pfsense-ce-2.7.2-amd64-10-12-2024.qcow2"
9+ }
10+ lifecycle {
11+ ignore_changes = all
12+ }
13+ }
14+
115resource "stackit_image" "this" {
216 project_id = var. project_id
317 labels = var. labels
418
5- name = " pfsense-ce-2.7.2-amd64-10-12-2024_stackit_image"
619 disk_format = " qcow2"
7- local_file_path = " ${ path . module } / pfsense-ce- 2.7.2-amd64-10-12-2024.qcow2 "
8-
20+ name = " pfsense-2.7.2-amd64-image "
21+ local_file_path = " ./pfsense.qcow2 "
922 config = {
1023 # UEFI must be disabled for this image to boot correctly
1124 uefi = false
1225 }
26+
27+ depends_on = [null_resource. pfsense_image_file ]
1328}
1429
1530resource "stackit_server" "this" {
You can’t perform that action at this time.
0 commit comments