Skip to content

ferose222/packer-templates

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packer-templates

Packer templates for Vagrant base boxes

Usage

Download packer from Packer Clone the repository:

$ git clone https://github.com/morfien101/packer-templates && cd packer-templates

Build a machine image from the template in the repository:

$ packer build json_files\ubuntu-16.10-amd64.json

Add the built box to Vagrant:

$ vagrant box add ubuntu-16.10-amd64 ubuntu-16.10-amd64-virtualbox.box

Configuration

You can configure each template to match your requirements by setting the following user variables.

User Variable Default Value Description
compression_level 6 Documentation
cpus 1 Number of CPUs
disk_size 40000 Documentation
headless 0 Documentation
memory 512 Memory size in MB
mirror A URL of the mirror where the ISO image is available

Example

Build an uncompressed Ubuntu Linux vagrant box with a 4GB hard disk using the VirtualBox provider:

$ packer build -var compression_level=0 -var disk_size=4000 json_files\ubuntu-16.10-amd64.json

About

My templates used for packer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 86.5%
  • Ruby 13.5%