All Projects → mrlesmithjr → Packer Templates

mrlesmithjr / Packer Templates

Licence: mit

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Packer Templates

Robox
The tools needed to robotically create/configure/provision a large number of operating systems, for a variety of hypervisors, using packer.
Stars: ✭ 303 (+236.67%)
Mutual labels:  packer, ubuntu, debian, fedora, vagrant, virtualbox
Vagrant Box Templates
Stars: ✭ 100 (+11.11%)
Mutual labels:  ubuntu, debian, fedora, vagrant, virtualbox
Packer Boxes
Jeff Geerling's Packer build configurations for Vagrant boxes.
Stars: ✭ 495 (+450%)
Mutual labels:  packer, ubuntu, debian, vagrant, virtualbox
Packer Build
Packer Automated VM Image and Vagrant Box Builds
Stars: ✭ 199 (+121.11%)
Mutual labels:  packer, ubuntu, debian, vagrant, virtualbox
Bento
Packer templates for building minimal Vagrant baseboxes for multiple platforms
Stars: ✭ 3,779 (+4098.89%)
Mutual labels:  redhat, packer, ubuntu, vagrant, virtualbox
Postinstall
💻 Bash Script to automate post-installation steps
Stars: ✭ 104 (+15.56%)
Mutual labels:  redhat, ubuntu, debian, fedora
Packer Ubuntu 1804
This build has been moved - see README.md
Stars: ✭ 101 (+12.22%)
Mutual labels:  packer, ubuntu, vagrant, virtualbox
docker-hands-on-guide
Hands on guide for docker, k8s cluster lightweight virtualization.
Stars: ✭ 25 (-72.22%)
Mutual labels:  vagrant, packer, virtualbox, redhat
Packer
Packer helpers and templates for Docker, IIS, SQL Server and Visual Studio on Windows and Ubuntu
Stars: ✭ 242 (+168.89%)
Mutual labels:  packer, ubuntu, vagrant, virtualbox
Ansible Role Security
Ansible Role - Security
Stars: ✭ 398 (+342.22%)
Mutual labels:  redhat, ubuntu, debian, fedora
packer-ubuntu-18.04
packer example - Ubuntu Server 18.04.5
Stars: ✭ 37 (-58.89%)
Mutual labels:  vagrant, packer, ubuntu, virtualbox
ansible-role-daemonize
Ansible Role - Daemonize.
Stars: ✭ 14 (-84.44%)
Mutual labels:  debian, ubuntu, fedora, redhat
packer-ubuntu
No description or website provided.
Stars: ✭ 29 (-67.78%)
Mutual labels:  vagrant, packer, ubuntu, virtualbox
Ansible Role Apache
Ansible Role - Apache 2.x.
Stars: ✭ 341 (+278.89%)
Mutual labels:  redhat, ubuntu, debian, fedora
Packer Ubuntu 1404
DEPRECATED - Packer Example - Ubuntu 14.04 Vagrant Box using Ansible provisioner
Stars: ✭ 81 (-10%)
Mutual labels:  packer, ubuntu, vagrant, virtualbox
Packer Templates
Packer templates for Vagrant base boxes
Stars: ✭ 471 (+423.33%)
Mutual labels:  packer, vagrant, virtualbox
Notion Linux
Native Notion packages for Linux
Stars: ✭ 469 (+421.11%)
Mutual labels:  ubuntu, debian, fedora
Open Build Service
Build and distribute Linux packages from sources in an automatic, consistent and reproducible way #obs
Stars: ✭ 599 (+565.56%)
Mutual labels:  ubuntu, debian, fedora
Archcraft
// Source : ISO
Stars: ✭ 437 (+385.56%)
Mutual labels:  ubuntu, debian, fedora
Mkosi
Build Legacy-Free OS Images
Stars: ✭ 589 (+554.44%)
Mutual labels:  ubuntu, debian, fedora

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 following providers:

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

Requirements

All of my Packer templates are configured to upload to Vagrant Cloud after a successful build has been executed. In order to upload a box version to Vagrant Cloud, you will need to create a private_vars.json file in the root of this repo with the following info:

{
  "vagrant_cloud_token": "Your Vagrant Cloud private API token",
  "vagrant_cloud_username": "Your Vagrant Cloud username"
}

If you do not want this functionality, you will need to edit the respective template within the distro folder and remove the following:

{
  "type": "vagrant-cloud",
  "box_tag": "{{ user `box_tag` }}",
  "access_token": "{{ user `vagrant_cloud_token` }}",
  "version": "{{ timestamp }}"
}

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/server
packer build -var-file=../../../private_vars.json -var-file=ubuntu1604.json ../../ubuntu-server.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

Note: The number at the end is the epoch time of the build. Replace this accordingly.

cd Ubuntu/xenial64/server
vagrant box add xenial64-server-packer-template-virtualbox-1542509766 xenial64-server-packer-template-virtualbox-1542509766.box

Create Vagrantfile

cd ~
mkdir -p packer/vagrant/xenial64-server
cd packer/vagrant/xenial64-server
vagrant init xenial64-server-packer-template-virtualbox-1542509766

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

When you need to clean up any of the lingering files/folers generated during building, you can execute the cleanup_builds.sh script.

Using pre-built and ready for consumption Vagrant templates

The majority of these templates are used to populate my vagrant-box-templates repo. I would highly recommend leveraging this repo for testing and etc.

License

MIT

Author Information

Larry Smith Jr.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].