Packer Classroom Series 12/Sep/2019

Packer Provisioning

What we know so far

We can use builder to create vm image

What is that we are looking out

We would like to have image with application installed.

Manual Steps: * Create VM (EC2) * executed some linux commands

sudo apt-get update
sudo apt-get install openjdk-8-jdk -y

Provisioning syntax

{
    "builders": [{

    }],
    "provisioners": [{

    }]
}

Reference

Scenarios

  1. Create a Apache Image in Azure and AWS
    • Two Packer files with aws-ebs builder & Azure
    • Create a provisioner with shell script to install apache
  2. Create a Tomcat Image in AWS

Leave a Reply

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

About continuous learner

devops & cloud enthusiastic learner