Skip to content

Commit

Permalink
Deprecate project, move to consolidated project.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Dec 12, 2019
1 parent 89e3e80 commit 750c453
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 254 deletions.
46 changes: 3 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,5 @@
# Packer Example - CentOS 7 minimal Vagrant Box using Ansible provisioner
# Packer Build - CentOS 7 minimal Vagrant Box

**Current CentOS Version Used**: 7.7 (1908)
**DEPRECATED**: This Packer build has been moved to a new consolidated project: https://github.com/geerlingguy/packer-boxes

**Pre-built Vagrant Box**:

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

This example build configuration installs and configures CentOS 7 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' centos7.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 one 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/).
The public box is still available and updated on Vagrant Cloud: [`geerlingguy/centos7`](https://app.vagrantup.com/geerlingguy/boxes/centos7), but the build configuration has been moved to the consolidated project.
25 changes: 0 additions & 25 deletions Vagrantfile

This file was deleted.

8 changes: 0 additions & 8 deletions ansible/main.yml

This file was deleted.

1 change: 0 additions & 1 deletion builds/README.md

This file was deleted.

76 changes: 0 additions & 76 deletions centos7.json

This file was deleted.

83 changes: 0 additions & 83 deletions http/ks.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions requirements.yml

This file was deleted.

4 changes: 0 additions & 4 deletions scripts/ansible.sh

This file was deleted.

11 changes: 0 additions & 11 deletions scripts/cleanup.sh

This file was deleted.

0 comments on commit 750c453

Please sign in to comment.