gatus-lxc.pkr.hcl (782B)
1 variable "manifest" { 2 type = string 3 default = "manifest.json" 4 } 5 6 source "lxc" "gatus" { 7 config_file = "config/lxc-config" 8 template_name = "download" 9 template_parameters = ["--dist", "Debian_by_maurer", "--release", "Bookworm", "--arch", "armv7l"] 10 } 11 12 variable "gatus_tls_nfs_server" { 13 type = string 14 description = "The NFS mount server for TLS certificates" 15 } 16 17 build { 18 sources = ["source.lxc.gatus"] 19 20 provisioner "shell" { 21 script = "scripts/timezone.sh" 22 } 23 24 provisioner "shell" { 25 script = "scripts/gatus.sh" 26 environment_vars = [ 27 "GATUS_TLS_NFS_SERVER=${var.gatus_tls_nfs_server}" 28 ] 29 } 30 } 31 32 packer { 33 required_plugins { 34 lxc = { 35 version = ">= 1.0.2" 36 source = "github.com/hashicorp/lxc" 37 } 38 } 39 }