/vagrant-boxes

baseboxes build with packer.io for use with vagrant

Primary LanguageShell

ffuenf - code • design • e-commerce

vagrant-boxes

[GitHub tag][tag] [Build Status][travis] [PayPal Donate][paypal_donate] [tag]: https://github.com/ffuenf/vagrant-boxes/tags [travis]: https://travis-ci.org/ffuenf/vagrant-boxes [paypal_donate]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J2PQS2WLT2Y8W&item_name=dop%3a%20vagrant-boxes&item_number=vagrant-boxes&currency_code=EUR

baseboxes build with packer for use with vagrant. This repository includes the packer templates to build the baseboxes. The build boxes are available through

  • Atlas
  • Amazon S3 (eu-central-1)

Tools

Usage

Make sure you have the above tools installed.

The following env vars must be present:

  • PACKER_ATLAS_TOKEN Atlas API Token
  • AWS_ACCESS_KEY_ID Amazon Webservices KEY-ID
  • AWS_SECRET_ACCESS_KEY Amazon Webservices ACCESS-KEY

You have to adjust the Thorfile line 50 to match your own S3 bucket.

run the following command to build/upload individual boxes:

$ bundle exec thor packer:build \
  --atlas_version=1.0.0 \                         # version tag
  --os=debian \                                   # os distribution (debian/ubuntu)
  --os_version=8.7.0 \                            # os version
  --providers=virtualbox,vmware_desktop,parallels # providers to build

run the following command to build/upload ALL boxes synchronously:

$ ./build_boxes.sh

run the following command to delete temporary artifacts

$ bundle exec thor packer:clean cache

run the following command to delete all local box files

$ bundle exec thor packer:clean boxes

Boxes

Ubuntu

Ubuntu Yakkety Yak 16.10 Server x86_64 / CHECKSUMS / manifest

  • VMware Tools 10.0.10 build-4301679
  • VirtualBox Guest Additions 5.1.14
  • Chef 12.18.31-1
  • Ruby 2.1.5-4ubuntu1
  • Rubygems 2.6.10
Provider URL
Atlas ffuenf/ubuntu-16.10-server-amd64
Virtualbox ubuntu-16.10-server-amd64_virtualbox.box
VMWare Fusion ubuntu-16.10-server-amd64_vmware.box

Ubuntu Xenial Xerus 16.04.2 Server x86_64 / CHECKSUMS / manifest

  • VMware Tools 10.0.10 build-4301679
  • VirtualBox Guest Additions 5.1.14
  • Chef 12.18.31-1
  • Ruby 2.3.0-5ubuntu1
  • Rubygems 2.6.10
Provider URL
Atlas ffuenf/ubuntu-16.04.2-server-amd64
Virtualbox ubuntu-16.04.2-server-amd64_virtualbox.box
VMWare Fusion ubuntu-16.04.2-server-amd64_vmware.box

Ubuntu Trusty Tahr 14.04.4 Server x86_64 / CHECKSUMS / manifest

  • VMware Tools 10.0.10 build-4301679
  • VirtualBox Guest Additions 5.1.14
  • Chef 12.18.31-1
  • Ruby 1.9.3.484-2ubuntu1.2
  • Rubygems 2.6.10
Provider URL
Atlas ffuenf/ubuntu-14.04.4-server-amd64
Virtualbox ubuntu-14.04.4-server-amd64_virtualbox.box
VMWare Fusion ubuntu-14.04.4-server-amd64_vmware.box

Debian

Debian Jessie 8.7.1 x86_64 / CHECKSUMS / manifest

  • VMware Tools 10.0.10 build-4301679
  • VirtualBox Guest Additions 5.1.14
  • Chef 12.18.31-1
  • Ruby 2.1.5-2+deb8u3
  • Rubygems 2.6.10
Provider URL
Atlas ffuenf/debian-8.7.1-amd64
Virtualbox debian-8.7.1-amd64_virtualbox.box
VMWare Fusion debian-8.7.1-amd64_vmware.box

Testing

The following Thor tasks are provided for automated testing of the cookbook:

$ bundle exec thor list
thor packer:build     # Execute the packer builder
thor packer:clean     # Remove temporary artifacts
thor packer:validate  # Validate all the packer templates

License and Author

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.