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": [{
}]
}
Scenarios
- 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
- Create a Tomcat Image in AWS