From 715c6d3a860b46083da35012fd7be8e4464f5ea1 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Mon, 13 Jul 2020 12:31:20 +0200 Subject: [PATCH] add alpine example for virtualbox-iso --- examples/hcl/linux/build.alpine.pkr.hcl | 28 ++++++++++++++++ .../{build.pkr.hcl => build.ubuntu.pkr.hcl} | 0 examples/hcl/linux/etc/http/alpine-answers | 15 +++++++++ examples/hcl/linux/etc/http/alpine-setup.sh | 19 +++++++++++ .../hcl/linux/source.virtualbox-iso.pkr.hcl | 11 +++++++ examples/hcl/linux/variables.alpine.pkr.hcl | 33 +++++++++++++++++++ 6 files changed, 106 insertions(+) create mode 100644 examples/hcl/linux/build.alpine.pkr.hcl rename examples/hcl/linux/{build.pkr.hcl => build.ubuntu.pkr.hcl} (100%) create mode 100644 examples/hcl/linux/etc/http/alpine-answers create mode 100644 examples/hcl/linux/etc/http/alpine-setup.sh create mode 100644 examples/hcl/linux/variables.alpine.pkr.hcl diff --git a/examples/hcl/linux/build.alpine.pkr.hcl b/examples/hcl/linux/build.alpine.pkr.hcl new file mode 100644 index 000000000..4b90ce38f --- /dev/null +++ b/examples/hcl/linux/build.alpine.pkr.hcl @@ -0,0 +1,28 @@ + +build { + name = "alpine" + description = </usr/local/bin/shutdown <", + "mount -t vfat /dev/fd0 /media/floppy", + "setup-alpine -f /media/floppy/alpine-answers", + "", + "${var.alpine_password}", + "${var.alpine_password}", + "", + "y", + "", + "reboot", + "", + "root", + "${var.alpine_password}", + "mount -t vfat /dev/fd0 /media/floppy", + "/media/floppy/alpine-setup.sh", + "reboot", + ] + +} \ No newline at end of file