Templates for Packer
Clone the repository:
$ git clone https://github.com/kaorimatz/packer-templates && cd packer-templates
Build a machine image from the template in the repository:
$ packer build fedora-20-x86_64.json
You can configure each template to match your requirements by setting the following user variables.
| User Variable | Default Value | Description |
|---|---|---|
compressin_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 |
Build an uncompressed Fedora 20 vagrant box with a 4GB hard disk:
$ packer build -var compression_level=0 -var disk_size=4000 fedora-20-x86_64.json