From e866286a4411138c49e329b7e71f67d9b187edba Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 10 Mar 2017 18:37:04 +0100 Subject: Templates for Centos 7.3 and Ubuntu 16.04 These were tested with qemu (2.8.0), virtualbox (5.1.16) and vmplayer (12.5.2-4638234). Using the qemu builder is preferable as it creates a qcow2 file directly. The unattended install is configured to install the necessary packages for ansible which will be needed to provision the VM. The rest is still pretty minimal. --- .gitignore | 2 + README.md | 34 ++++++++++- base.json | 9 +++ centos-7.3-x86_64.json | 91 ++++++++++++++++++++++++++++ http/centos-7.3/anaconda-ks.cfg | 37 ++++++++++++ http/ubuntu-16.04/preseed.cfg | 51 ++++++++++++++++ ubuntu-16.04-amd64.json | 129 ++++++++++++++++++++++++++++++++++++++++ 7 files changed, 352 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 base.json create mode 100644 centos-7.3-x86_64.json create mode 100644 http/centos-7.3/anaconda-ks.cfg create mode 100644 http/ubuntu-16.04/preseed.cfg create mode 100644 ubuntu-16.04-amd64.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b6acd97 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +output-*/ + diff --git a/README.md b/README.md index 26436d9..60d5011 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,35 @@ # Packer templates for OpenSLX -TODO +Packer-based generation of reference systems using distro's ISOs. + +## Dependencies + +Packer => 0.12.2 +Download: https://www.packer.io/downloads.html + +## Usage + +The file 'base.json' contains default variables (VM, SSH) common to all templates. +Thus it should always be included using packer's '-var-file' option. + +Basic usage: + packer build -var-file=base.json