Skip to content

holser/packer-templates

Repository files navigation

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.

Github repository for bug reports or feature requests:

https://github.com/holser/packer-templates/

circle.yml

See the circle.yml for details how the glue works. It just installs packer 0.10.1 and starts the packer build.

Custom builds

Ubuntu 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' -

Debian build

jq 'del(.["post-processors", "push"])' debian.json | \
  DEBIAN_MAJOR_VERSION=8 \
  DEBIAN_MINOR_VERSION=5 \
  ARCH=amd64 \
  HEADLESS=true \
  packer build -var 'cpus=2' - 

Login Credentials

(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.

VM Specifications

  • Vagrant Libvirt Provider
  • Vagrant Virtualbox Provider

qemu

  • VirtIO dynamic Hard Disk (up to 10 GiB)

Customized installation

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.

Debian/Ubuntu installation
  • 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages