librenms/packer-templates

Name: packer-templates

Owner: LibreNMS Project

Description: Packer templates for Vagrant base boxes

Forked from: kaorimatz/packer-templates

Created: 2017-06-05 07:31:24.0

Updated: 2017-06-05 09:06:54.0

Pushed: 2017-07-05 06:42:47.0

Homepage: https://atlas.hashicorp.com/kaorimatz

Size: 340

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

packer-templates

Travis

Packer templates for Vagrant base boxes

Usage

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 -only=virtualbox-iso archlinux-x86_64.json

Add the built box to Vagrant:

$ vagrant box add archlinux-x86_64 archlinux-x86_64-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 Arch Linux vagrant box with a 4GB hard disk using the VirtualBox provider:

$ packer build -only=virtualbox-iso -var compression_level=0 -var disk_size=4000 archlinux-x86_64.json
Pre-built Boxes

You can also use the pre-built boxes hosted on Atlas.

$ vagrant box add kaorimatz/archlinux-x86_64

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.