From 38c2aa296736af202983c2d7581f5c1f71cb0063 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 9 Apr 2019 12:27:51 +0200 Subject: README.md: update to reflect current usage :) --- README.md | 265 +++++++++++++++++++++++++++++++++++++------------------------- 1 file changed, 159 insertions(+), 106 deletions(-) diff --git a/README.md b/README.md index 6c43078..3d8e09e 100644 --- a/README.md +++ b/README.md @@ -1,144 +1,197 @@ -# Packer templates for OpenSLX - -Packer-based generation of reference systems using distro's ISOs. +# Packer templates for network boot using OpenSLX-NG + +This repository provides a build system based on a Makefile and Packer/Ansible +templates to create clean operating system images - using Packer to generate +the base system and Ansible to further install software stacks. This repository +contains a set of templates for CentOS and Ubuntu distributions as well as +kickstart/preseed files to handle the initial unattended installations. A +special Packer template further allows for the base images to be provisioned +using custom Ansible playbooks. The provisioning playbooks are not maintained +within this repository - but can be specified via environment variable when +calling the Makefile (more on that later). Once provisioned, the network boot +playbook maintained on `https://git.openslx.org/openslx-ng/ansible-dracut.git` +can optionally be executed to generate the initramfs (and to extract the +kernel) needed for network boot. + +This repository contains a Makefile coordinating all these steps. Even though +the provided Packer templates and Ansible playbooks are usable as is, it is +recommended to use the Makefile to build images. Beware that changing +parameters of the provided templates (e.g. output directories or image names) +might break the full workflow - if changes are necessary, make sure to reflect +these changes within the Makefile. ## Dependencies -Packer => 0.12.2 -Download: https://www.packer.io/downloads.html +* Packer => 1.2.2 + * Download: https://www.packer.io/downloads.html -## Usage +* QEMU => 3.0 + * Download: https://www.qemu.org/download/ -The file 'base.json' contains default variables (VM, SSH) common to all templates, -and should always be included using packer's '-var-file' option. The root password -is expected to be specified as the ROOTPW environment variable! +* Ansible => 2.5.0 + * Installation: https://docs.ansible.com/ansible/latest/installation_guide/ -Basic usage: -```shell -ROOTPW= packer build -var-file=base.json