jantman / packer-arch-workstation

packer.io template for building an Arch Linux base box

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Packer Arch Workstation

This project was originally forked from elasticdog/packer-arch, which seemed to be the most popular Packer template to generate a Vagrant base box for Arch Linux. The original template was designed to replicate a DigitalOcean Arch Linux droplet; my own use case is to test my Puppet-based archlinux-workstation module ecosystem that I use to manage my desktop and laptop; as such, I've made some relatively major changes.

This will eventually merge in some work from other forks and projects as needed:

Download

If you just want to use this box for Vagrant/VirtualBox, you can use it from Atlas:

vagrant init jantman/packer-arch-workstation; vagrant up --provider virtualbox

Usage

Requirements

This project uses Ruby/Rake to manage building; you'll need to have ruby and bundler installed.

To get started:

$ git clone https://github.com/jantman/packer-arch-workstation.git
$ cd packer-arch-workstation/
$ bundle install --path vendor

VirtualBox Provider

Assuming that you already have Packer, VirtualBox, and Vagrant installed, you should be good to clone this repo and go:

$ rake build

Then you can import the generated box into Vagrant:

$ vagrant box add arch packer_arch_virtualbox.box

Releasing

  1. Commit any git changes; ensure the repo is clean and all changes are committed.
  2. bundle exec rake build
  3. s3cmd put packer_arch_virtualbox_$(git rev-parse --short HEAD).box s3://jantman-repo/vagrant-boxes/
  4. https://atlas.hashicorp.com/jantman/boxes/packer-arch-workstation - log in, add a new version, add a provider, set the source to the S3 URL. Release the version.
  5. Tag the commit in git with the version.
  6. git push

License

The original upstream version of elasticdog/packer-arch is provided under the terms of the ISC License.

This version, and all of my modifications, are provided under the GNU GPL v3 or Later.

Copyright © 2013–2014, Aaron Bull Schaefer. Modifications Copyright © 2015, Jason Antman.

About

packer.io template for building an Arch Linux base box

License:ISC License


Languages

Language:Shell 73.8%Language:Ruby 26.2%