Skip to content

hansode/packer-vagrant-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Packer Vagrant Templates

This repository contains templates for CentOS/Fedora that can create Vagrant base boxes using Packer.

Current Boxes

64-bit boxes:

32-bit boxes:

Installed Packages

Minimal + Guest Additions + Debugging/Development tools

  • openssh
  • openssh-clients
  • openssh-server
  • rpm
  • yum
  • curl
  • dhclient
  • passwd
  • vim-minimal
  • sudo
  • kernel-devel
  • gcc
  • perl
  • bzip2
  • ntp
  • ntpdate
  • man
  • rsync
  • git
  • make
  • vim-minimal
  • screen
  • nmap
  • lsof
  • strace
  • tcpdump
  • traceroute
  • telnet
  • ltrace
  • bind-utils
  • sysstat
  • nc
  • wireshark
  • zip
  • nfs-utils
  • acpid

Requirements

Build Vagrant Base Box

A GNU Make Makefile drives the process via the following targets:

$ make build # Build the box
$ make test  # Run tests
$ make clean # Clean up stamp files

Makefile variable(s)

The variable(s) can be currently used are:

  • PROVIDER

Possible values for the PROVIDER are:

  • virtualbox (default)
  • vmware

If you build the vagrant base box for vmware, the value of PROVIDER should be vmware. For example with vmware:

$ make build PROVIDER=vmware
$ make test  PROVIDER=vmware

Folder Structure

project/
|  +- Makefile      # Symbolic link of ../common/Makefile
|  +- ks.cfg        # Minimal base box build scenario
|  +- template.json # Packer template
|  +- Vagrantfile   # Copy of ../templates/Vagrantfile
|
+- common/
|  +- Makefile
|  +- scripts/
|     +- setup.sh
|     +--- bootstrap.sh
|     +--- sshd_config.sh
|     +--- vagrant.guest.account.sh
|     +--- virtualbox.guest.additions.sh
|     +--- vmware-tools.sh
|     +- teardown.sh
|
+- templates/
   +- Vagrantfile
   +- ks.5.cfg # Kickstart config for CentOS-5.x
   +- ks.6.cfg # Kickstart config for CentOS-6.x
   +- ks.7.cfg # Kickstart config for CentOS-7.x

Contribution

  1. Fork (https://github.com/hansode/packer-vagrant-templates).
  2. Create a feature branch.
  3. Commit your changes.
  4. Fix stuff. Use make build in a relevant directory (like cd centos-6.5-x86_64).
  5. Run make test in a relevant directory (like cd centos-6.5-x86_64) to see if the tests pass. Repeat steps 3-5 until done.
  6. Update README.md and AUTHORS to reflect any changes.
  7. Push to your fork and submit a pull request.

License

Beerware license.

If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.

About

Packer Vagrant Templates for CentOS/Fedora

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published