Giter VIP home page Giter VIP logo

packer-templates's Introduction

Table of Contents generated with DocToc

packer-templates

Purpose

This repository is for maintaining my personal Vagrant Box Templates using Packer.

Information

  • All builds are based on the VirtualBox provider.

  • You can find my collection of builds here

NOTE: All builds are base builds and follow the Vagrant guidelines of how a Vagrant box should be built.

Distros

The following distros are available:

  • Centos
    • 6
    • 7
  • Debian
    • Jessie
    • Stretch
    • Wheezy
  • Fedora
    • 22
    • 23
    • 24
    • 25
  • OpenSuse
    • 13.2
    • 42.1
  • RedHat
    • 7
  • Ubuntu
    • Precise
    • Trusty
    • Utopic
    • Vivid
    • Wily
    • Xenial
    • Yakkety
    • Zesty

Requirements

Software

Usage

Building a box

To build a Vagrant box with Packer for Virtualbox:

Select distro

Choose which distro you are interested in building.

Build distro

NOTE: This example we will have chosen Ubuntu Xenial

cd Ubuntu/xenial64
packer build template.json

Now watch your build kick off and run through the building process. Once it has completed you will be ready to test it out.

Testing a box

Once your build has completed you are ready to test it out.

Add box to Vagrant

cd Ubuntu/xenial64
vagrant box add xenial64 xenial-server-x86_64.box

Create Vagrantfile

cd ~
mkdir -p packer/vagrant/xenial64
cd packer/vagrant/xenial64
vagrant init xenial64

Spin it up

vagrant up

Test it out

vagrant ssh

Now do some basic tests to validate all is good.

Tear it down

vagrant destroy -f

Cleaning up

Included in each distro is a cleanup script called cleanup.sh to clean up the build folder when you are complete.

#!/bin/bash
rm *.box
rm -rf packer_cache

To cleanup:

cd Ubuntu/xenial64
./cleanup.sh

License

MIT

Author Information

Larry Smith Jr.

packer-templates's People

Contributors

mrlesmithjr avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.