Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geerlingguy/packer-ubuntu-1204
DEPRECATED - Packer Example - Ubuntu 12.04 Vagrant Box using Ansible provisioner
https://github.com/geerlingguy/packer-ubuntu-1204
ansible box fusion packer ubuntu ubuntu1204 vagrant virtualbox vmware
Last synced: 3 months ago
JSON representation
DEPRECATED - Packer Example - Ubuntu 12.04 Vagrant Box using Ansible provisioner
- Host: GitHub
- URL: https://github.com/geerlingguy/packer-ubuntu-1204
- Owner: geerlingguy
- Created: 2014-11-08T02:35:18.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-05-14T14:28:07.000Z (over 6 years ago)
- Last Synced: 2024-10-10T04:06:45.720Z (3 months ago)
- Topics: ansible, box, fusion, packer, ubuntu, ubuntu1204, vagrant, virtualbox, vmware
- Language: Shell
- Homepage: https://app.vagrantup.com/geerlingguy/boxes/ubuntu1204
- Size: 12.7 KB
- Stars: 5
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Packer Example - Ubuntu 12.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 2018. Ubuntu 12.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**: 12.04.5
**Pre-built Vagrant Box**:
- [`vagrant init geerlingguy/ubuntu1204`](https://vagrantcloud.com/geerlingguy/boxes/ubuntu1204)
- See older versions: http://files.midwesternmac.com/This example build configuration installs and configures Ubuntu 12.04 x86_64 minimal using Ansible, and then generates two Vagrant box files, for:
- VirtualBox
- VMwareThe 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)
- [VMware Fusion](http://www.vmware.com/products/fusion/) (or Workstation - if you want to build the VMware 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 ubuntu1204.json
After a few minutes, Packer should tell you the box was generated successfully.
If you want to only build a box for one of the supported virtualization platforms (e.g. only build the VMware box), add `--only=vmware-iso` to the `packer build` command:
$ packer build --only=vmware-iso ubuntu1204.json
## Testing built boxes
There's an included Vagrantfile that allows quick testing of the built Vagrant boxes. From this same directory, run one of the following commands after building the boxes:
# For VMware Fusion:
$ vagrant up vmware --provider=vmware_fusion
# For VirtualBox:
$ vagrant up virtualbox --provider=virtualbox## License
MIT license.
## Author Information
Created in 2014 by [Jeff Geerling](http://jeffgeerling.com/), author of [Ansible for DevOps](http://ansiblefordevops.com/).