Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save izmilia-prastika/617a0df5ac712ca3b1fb7d1c33599240 to your computer and use it in GitHub Desktop.
Save izmilia-prastika/617a0df5ac712ca3b1fb7d1c33599240 to your computer and use it in GitHub Desktop.
Contoh Ragam Server Tempating untuk melakukan instalasi dan menjalankan web server dengan aplikasi PHP
{
"builders": [{
"ami_name": "packer-example",
"instance_type": "t2.micro",
"region": "us-east-1",
"type": "amazon-ebs",
"source_ami": "ami-40d28157",
"ssh_username": "ubuntu"
}],
"provisioners": [{
"type": "shell",
"inline": [
"sudo apt-get update",
"sudo apt-get install -y php",
"sudo apt-get install -y apache2",
"sudo git clone https://github.com/brikis98/php-app.git /var/www/html/app"
]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment