Skip to content

docktermj/packer-kinesis-sink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packer-example

Based on the tutorial at https://www.packer.io/intro/getting-started/setup.html

Local development

Dependencies

Packer

$ packer version
Packer v0.12.1

Vagrant

$ vagrant -v
Vagrant 1.9.1

VirtualBox

$ vboxmanage --version
5.0.24_Ubuntur108355

VirtualBox Guest Additions

Ubuntu
sudo apt-get install -y virtualbox-guest-additions-iso
sudo vagrant plugin install vagrant-vbguest
CentOS
vagrant plugin install vagrant-vbguest

AWS credentials

~/.aws/credentials

Clone repository

mv ~/docktermj.git/packer-example ~/docktermj.git/packer-example.$(date +%s)
git clone [email protected]:docktermj/packer-example.git ~/docktermj.git/packer-example

Build

cd ~/docktermj.git/packer-example
packer build template.json

Add to library

cd ~/docktermj.git/packer-example
vagrant box add --name="packer-example-virtualbox" ./packer-example-nnnnnnnnnn-virtualbox.box

Run

mv /tmp/packer-example /tmp/packer-example.$(date +%s)
mkdir /tmp/packer-example
cd /tmp/packer-example
vagrant init packer-example-virtualbox
vagrant up

Login

cd /tmp/packer-example
vagrant ssh

Public login

1 Uncomment config.vm.network in /tmp/packer-example/Vagrantfile. Example:

sed -i.$(date +'%s') \
  -e 's/# config.vm.network \"public_network\"/config.vm.network \"public_network\"/g' \
  /tmp/packer-example/Vagrantfile
  1. Start vagrant image.
cd /tmp/packer-example
vagrant ssh
  1. Find the IP address.
ip addr show
  1. Exit vagrant image and re-login

References

  1. Templates:
    1. https://github.com/shiguredo/packer-templates
    2. https://github.com/maier/packer-templates

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages