packer-builds

Packer Builds for LXC and Libvirt
git clone https://git.in0rdr.ch/packer-builds.git
Log | Files | Refs | Pull requests |Archive | README

postgres-lxc.pkr.hcl (579B)


      1 variable "manifest" {
      2   type    = string
      3   default = "manifest.json"
      4 }
      5 
      6 source "lxc" "postgres" {
      7   config_file         = "config/lxc-config"
      8   template_name       = "download"
      9   template_parameters = ["--dist", "Debian_by_maurer", "--release", "Bookworm", "--arch", "armv7l"]
     10 }
     11 
     12 build {
     13   sources = ["source.lxc.postgres"]
     14 
     15   provisioner "shell" {
     16     script = "scripts/timezone.sh"
     17   }
     18 
     19   provisioner "shell" {
     20     script = "scripts/postgres.sh"
     21   }
     22 }
     23 
     24 packer {
     25   required_plugins {
     26     lxc = {
     27       version = ">= 1.0.2"
     28       source  = "github.com/hashicorp/lxc"
     29     }
     30   }
     31 }