Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/geerlingguy/packer-ubuntu-1404

DEPRECATED - Packer Example - Ubuntu 14.04 Vagrant Box using Ansible provisioner
https://github.com/geerlingguy/packer-ubuntu-1404

ansible box image iso lts minimal packer ubuntu ubuntu1404 vagrant virtualbox

Last synced: 3 months ago
JSON representation

DEPRECATED - Packer Example - Ubuntu 14.04 Vagrant Box using Ansible provisioner

Awesome Lists containing this project

README

        

# Packer Example - Ubuntu 14.04 minimal Vagrant Box

> **DEPRECATED**: This project is no longer maintained, and though the base box is still available on Vagrant Cloud/Atlas, it will not be updated anymore as of 2019. Ubuntu 14.04 no longer receives active support from Canonical, therefore any users still running this version should upgrade to a newer, supported Ubuntu release.

**Current Ubuntu Version Used**: 14.04.5

**Pre-built Vagrant Box**:

- [`vagrant init geerlingguy/ubuntu1404`](https://vagrantcloud.com/geerlingguy/boxes/ubuntu1404)
- See older versions: http://files.midwesternmac.com/

This example build configuration installs and configures Ubuntu 14.04 x86_64 minimal using Ansible, and then generates a Vagrant box file for VirtualBox.

The example can be modified to use more Ansible roles, plays, and included playbooks to fully configure (or partially) configure a box file suitable for deployment for development environments.

## Requirements

The following software must be installed/present on your local machine before you can use Packer to build the Vagrant box file:

- [Packer](http://www.packer.io/)
- [Vagrant](http://vagrantup.com/)
- [VirtualBox](https://www.virtualbox.org/) (if you want to build the VirtualBox box)
- [Ansible](http://docs.ansible.com/intro_installation.html)

## Usage

Make sure all the required software (listed above) is installed, then cd to the directory containing this README.md file, and run:

$ packer build -var 'version=1.2.0' ubuntu1404.json

After a few minutes, Packer should tell you the box was generated successfully, and the box was uploaded to Vagrant Cloud.

> **Note**: This configuration includes a post-processor that pushes the built box to Vagrant Cloud (which requires a `VAGRANT_CLOUD_TOKEN` environment variable to be set); remove the `vagrant-cloud` post-processor from the Packer template to build the box locally and not push it to Vagrant Cloud. You don't need to specify a `version` variable either, if not using the `vagrant-cloud` post-processor.

## Testing built boxes

There's an included Vagrantfile that allows quick testing of the built Vagrant boxes. From this same directory, run the following command after building the box:

$ vagrant up

## License

MIT license.

## Author Information

Created in 2014 by [Jeff Geerling](https://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/).