Packer template from CentOS
Shell
Latest commit 356a5a4 Dec 20, 2016 @CommanderK5 CentOS 7.3 update

README.md

Packer Centos template

Packer template to make VirtualBox images.

Notes

CentOS 64-bit VM, 10G disk, EPEL repo, Puppet 4, no SELinux, no firewall,

Packer version: 0.8.6

Usage

Installing Packer

Download the latest packer from http://www.packer.io/downloads.html

Prepare var file

cp vars.json.template vars-example.json

Example var file for CentOS 7.x:

{
  "iso_url": "http://ftp.ps.pl/pub/Linux/CentOS/7/isos/x86_64/CentOS-7-x86_64-Minimal-1611.iso",
  "iso_checksum": "27bd866242ee058b7a5754e83d8ee8403e216b93d130d800852a96f41c34d86a",
  "iso_checksum_type": "sha256",
  "guest_additions_path": "VBoxGuestAdditions.iso",
  "redhat_release": "7.3",
  "disk_size": "15000"
}

Example var file for CentOS 6.x:

{
  "iso_url": "http://mirror.sov.uk.goscomb.net/centos/6.8/isos/x86_64/CentOS-6.8-x86_64-minimal.iso",
  "iso_checksum": "ec49c297d484b9da0787e5944edc38f7c70f21c0f6a60178d8e9a8926d1949f4",
  "iso_checksum_type": "sha256",
  "guest_additions_path": "VBoxGuestAdditions.iso",
  "redhat_release": "6.8",
  "disk_size": "10000"
}

Running Packer

$ packer build -var-file=vars-example.json vagrant-centos.json