nilo72 / packer-templates

VM Templates for packer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tech-Angels Packer templates

Boxes description

The current and only template was created for Debian 7.1.0 VM boxes, because this is the default environment at Tech-Angels. The boxes are "vanilla" with a minimal setup, 256MB RAM, 1 CPU. These settings can be easily changed in vagrant.

Direct Download

Packaged boxes are available for vmware and virtualbox:

Prerequisites

Installing Packer via Homebrew

$ brew tap homebrew/binary
$ brew install packer

Build vagrant box

$ packer build ta-debian-7.1.0.json

or optionnaly, select only one provider, for example vmware:

$ packer build -only vmware ta-debian-7.1.0.json

Install your new box

$ vagrant box add ta-debian-7.1.0 ./packer_vmware_vmware.box

or

$ vagrant box add ta-debian-7.1.0 ./packer_virtualbox_virtualbox.box

The VM image has been imported to vagrant, it's now available on your system.

Vagrant

Getting Started

To use this image with Vagrant, create a vagrant file (vagrant init), and use the newly created box:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  # All Vagrant configuration is done here. The most common configuration
  # options are documented and commented below. For a complete reference,
  # please see the online documentation at vagrantup.com.

  # Every Vagrant virtual environment requires a box to build off of.
  config.vm.box = "ta-debian-7.1.0"

  # Make ssh login secure
  # config.ssh.private_key_path = '~/.ssh/id_rsa'
  #
  # [...]
end

And initialize the vm:

$ vagrant up --provider=vmware_fusion

The --provider option is only needed if another vagrant provider is available, like virtualbox.

Ignore vagrant boxes in git

$ echo ".vagrant" >> ~/.gitignore

Contributing

  1. Fork it
  2. Create your recipe branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some features')
  4. Push to the branch (git push origin my-new-features)
  5. Create new Pull Request

Credits

Many thanks to Mitchell Hashimoto for his awesome work on Packer and Vagrant.

Tech-Angels Inc. - http://www.tech-angels.com/

Tech-Angels

About

VM Templates for packer

License:MIT License