Skip to content

bbarke/packer-vagrant-pres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Packer and Vagrant presentation

Setup

Packer and Vagrant will need to be installed for this to work.

Running

Packer

These are instructions to setup your environment to create and push a new vagrant box to your atlas account so others can view it.

Setup Atlas (If you want to push to your own repo)

  • An atlas account needs to be created. Create one here
  • Create a new token here
  • Linux:
    • place this your .profile folder or run it from the command line: export ATLAS_TOKEN=”<the generated token>”. If you run it from the command line, be sure to save it somewhere for later use. If you do lose it, you can simply create another one and delete the old one
  • Windows:
    • Open up the command prompt and run this: setx ATLAS_TOKEN <the generated token>

Packer run

  • Adjust the values in variables.json to fit your user. For example, change atlas_username to your atlas username.

  • To have Atlas build it for you run this from the root directory packer push -var-file=variables.json ubuntu.json

  • To build it yourself and push to atlas use this command packer build -var-file=variables.json ubuntu.json

Atlas also has a great tutorial that can be run from here: https://atlas.hashicorp.com/tutorial/packer-vagrant/1

Vagrant

Simply cd into the vagrant/ folder and run vagrant up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published