From 2a1d0b520f3caa94f9a1f185344b723abc242c53 Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Tue, 23 Apr 2024 10:54:08 -0400 Subject: [PATCH] Added initial-setup script file provisioner to all of the templates --- Almalinux-9/almalinux-9.pkr.hcl | 5 +++++ Debian-12/debian-12.pkr.hcl | 5 +++++ FreeBSD-14/freebsd-14.pkr.hcl | 5 +++++ Rocky-9/rocky-9.pkr.hcl | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/Almalinux-9/almalinux-9.pkr.hcl b/Almalinux-9/almalinux-9.pkr.hcl index f339f4e..e51690a 100644 --- a/Almalinux-9/almalinux-9.pkr.hcl +++ b/Almalinux-9/almalinux-9.pkr.hcl @@ -60,4 +60,9 @@ build { provisioner "shell" { script = "scripts/rhel-install.sh" } + + provisioner "file" { + source = "scripts/initial-setup.sh" + destination = "/home/xadmin/initial-setup.sh" + } } diff --git a/Debian-12/debian-12.pkr.hcl b/Debian-12/debian-12.pkr.hcl index be45fe3..90d83c0 100644 --- a/Debian-12/debian-12.pkr.hcl +++ b/Debian-12/debian-12.pkr.hcl @@ -60,4 +60,9 @@ build { provisioner "shell" { script = "scripts/debian-install.sh" } + + provisioner "file" { + source = "scripts/initial-setup.sh" + destination = "/home/xadmin/initial-setup.sh" + } } diff --git a/FreeBSD-14/freebsd-14.pkr.hcl b/FreeBSD-14/freebsd-14.pkr.hcl index 9a6ca98..4d427c7 100644 --- a/FreeBSD-14/freebsd-14.pkr.hcl +++ b/FreeBSD-14/freebsd-14.pkr.hcl @@ -56,4 +56,9 @@ build { provisioner "shell" { script = "scripts/freebsd-install.sh" } + + provisioner "file" { + source = "scripts/initial-setup.sh" + destination = "/home/xadmin/initial-setup.sh" + } } diff --git a/Rocky-9/rocky-9.pkr.hcl b/Rocky-9/rocky-9.pkr.hcl index 85f38d0..e0a19c7 100644 --- a/Rocky-9/rocky-9.pkr.hcl +++ b/Rocky-9/rocky-9.pkr.hcl @@ -60,4 +60,9 @@ build { provisioner "shell" { script = "scripts/rhel-install.sh" } + + provisioner "file" { + source = "scripts/initial-setup.sh" + destination = "/home/xadmin/initial-setup.sh" + } }