28 lines
799 B
HCL
28 lines
799 B
HCL
// Local copy of the Image
|
|
resource "null_resource" "pfsense_image_file" {
|
|
triggers = {
|
|
always_run = timestamp()
|
|
}
|
|
|
|
provisioner "local-exec" {
|
|
command = "curl -o pfsense.qcow2 https://pfsense.object.storage.eu01.onstackit.cloud/pfsense-ce-2.7.2-amd64-10-12-2024.qcow2"
|
|
}
|
|
}
|
|
|
|
// Upload VPN Appliance Image to STACKIT
|
|
resource "stackit_image" "pfsense_image" {
|
|
project_id = module.project.project_info["project1"].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 = 50
|
|
min_ram = 4
|
|
config = {
|
|
uefi = false
|
|
cdrom_bus = "scsi"
|
|
disk_bus = "scsi"
|
|
secure_boot = false
|
|
}
|
|
}
|
|
|