diff options
author | Jonathan Bauer | 2017-04-07 14:44:45 +0200 |
---|---|---|
committer | Jonathan Bauer | 2017-04-07 14:44:45 +0200 |
commit | 2ecb5d98fe9d5bc7b98913bb60ce196a2366a531 (patch) | |
tree | c02ff7157b61d5acb4213bbe4c61488fd94f2800 /README.md | |
parent | added tl;dr section for quick start (diff) | |
download | packer-templates-2ecb5d98fe9d5bc7b98913bb60ce196a2366a531.tar.gz packer-templates-2ecb5d98fe9d5bc7b98913bb60ce196a2366a531.tar.xz packer-templates-2ecb5d98fe9d5bc7b98913bb60ce196a2366a531.zip |
root password now set via ROOTPW env var
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -7,13 +7,19 @@ Packer-based generation of reference systems using distro's ISOs. Packer => 0.12.2 Download: https://www.packer.io/downloads.html -## Usage: Creating base images +## 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. +The file 'base.json' contains default variables (VM, SSH) common to all templates, +and must always be included using packer's '-var-file' option. +The root password is expected to be in the ROOTPW environment variable. +The installation procedure will fail without it! Basic usage: - packer build -var-file=base.json <template> + ROOTPW=<password> packer build -var-file=base.json <template> + +For the rest of the examples, the root password is expected to be exported. + +## Usage: Creating base images Example: build Ubuntu 16.04.2 LTS template using qemu builder packer build -var-file=base.json -only=qemu ubuntu-16.04-amd64.json @@ -68,11 +74,6 @@ Variables set in base.json can be overriden using packer's '-var' options, e.g.: packer build -var-file=base.json -var='headless=true' <template> (Make sure you first include base.json before overriding a variable!) -Packer connects to the VM per SSH to provision them after the initial ISO installation. -A default password is defined in base.json and the corresponding SHA-512 hashes are set -in the kickstart/preseed files. If you change the 'ssh_password' make sure to change the -hashes in the ks/ps files (generate with 'mkpasswd -m sha-512')! - The partitioning of the virtual disk is done via kickstart/preseed files. Currently, a simple partition scheme is used: separate boot partition, rest a the main system partition labeled as SLX_SYS, using ext4 as filesystem. Other filesystems are also |