Introduction to Packer

What is Packer?

Packer is a tool to create identical/similar machines for multiple platforms from a single source configuration

Installing Packer

choco install packer -y
  • Mac
brew install packer
  • Linux
  • Install unzip:

ubuntu

sudo apt-get install unzip

RedHat

sudo yum install unzip
  • Install Packer: Download latest version from here
# Download packer
wget https://releases.hashicorp.com/packer/1.3.3/packer_1.3.3_linux_amd64.zip
# extract packer
unzip packer_1.3.3_linux_amd64.zip -d packer
# move extracted folder to /usr/local
sudo mv packer /usr/local/
  • Set Packer environment Add the following line to /etc/environment at the end of the file
export PATH="$PATH:/usr/local/packer"

Activate the PATH with

source /etc/environment
  • Check the installation Execute the following command
packer --help

Packer usage in DevOps Pipeline

Packer sample usage

By continuous learner

devops & cloud enthusiastic learner

1 comment

Leave a comment

Turn on JavaScript to leave a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Floating Social Media Icons by Acurax Wordpress Designers
Exit mobile version
%%footer%%