Packer Templates
The most of settings are specified as variables. This allows to override them
with -var
key without template modification. A few environment variables
should be specified as a safety measure. See debian.json
ubuntu.json
with
the post-processors section with all details about deploying the Vagrant Boxes
to Atlas.
https://github.com/holser/packer-templates/
See the circle.yml
for details how the glue works. It just installs packer 0.10.1
and starts the packer build
.
jq 'del(.["post-processors", "push"])' ubuntu.json | \
UBUNTU_MAJOR_VERSION=16.04 \
UBUNTU_MINOR_VERSION=.2 \
UBUNTU_TYPE=server \
ARCH=amd64 \
HEADLESS=true \
packer build -var 'cpus=2' -
jq 'del(.["post-processors", "push"])' debian.json | \
DEBIAN_MAJOR_VERSION=8 \
DEBIAN_MINOR_VERSION=5 \
ARCH=amd64 \
HEADLESS=true \
packer build -var 'cpus=2' -
(root password is "vagrant" or is not set )
- Username: vagrant
- Password: vagrant
SSH_USER may be used to create a different user whci may be used later to access environment.
- Vagrant Libvirt Provider
- Vagrant Virtualbox Provider
- VirtIO dynamic Hard Disk (up to 10 GiB)
Debian configuration is based on
jessie preseed.
Ubuntu configuration is based on
xenial preseed.
A few modifications have been made. Use diff
for more details.
- en_US.UTF-8
- keymap for standard US keyboard
- UTC timezone
- NTP enabled (default configuration)
- full-upgrade
- unattended-upgrades
- /dev/vda1 mounted on / using ext4 filesystem (all files in one partition)
- no swap