Skip to content

Instantly share code, notes, and snippets.

@bonclay7
Last active June 8, 2017 11:04
Show Gist options
  • Select an option

  • Save bonclay7/138b087bbbcccd3cef741b83db114779 to your computer and use it in GitHub Desktop.

Select an option

Save bonclay7/138b087bbbcccd3cef741b83db114779 to your computer and use it in GitHub Desktop.
#!/bin/bash -e
workdir=/tmp/packer
pversion=0.10.1
which packer || {
mkdir -p $workdir
cd $workdir
apt-get -qqy install unzip wget
wget https://releases.hashicorp.com/packer/$pversion/packer_${pversion}_linux_amd64.zip && \
unzip packer_${pversion}_linux_amd64.zip && \
mv packer /usr/local/bin/
rm -Rf $workdir
packer -v
}
echo "Go ahead and enjoy packer"
@bonclay7

bonclay7 commented Sep 8, 2016

Copy link
Copy Markdown
Author

maybe launch as sudo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment