From 67e0070c13a58e5492b3cf43d5b7dffda9087779 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Sun, 12 Feb 2017 17:24:00 -0800 Subject: [PATCH] Example of minimal. --- ch12/packer/web.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ch12/packer/web.json diff --git a/ch12/packer/web.json b/ch12/packer/web.json new file mode 100644 index 0000000..a3ecc64 --- /dev/null +++ b/ch12/packer/web.json @@ -0,0 +1,29 @@ +{ + "builders": [ + { + "type": "amazon-ebs", + "region": "us-west-1", + "source_ami": "ami-79df8219", + "instance_type": "t2.micro", + "ssh_username": "ubuntu", + "ami_name": "web-nginx-{{timestamp}}", + "tags": { + "Name": "web-nginx" + } + } + ], + "provisioners": [ + { + "type": "shell", + "inline": [ + "sleep 30", + "sudo apt-get update", + "sudo apt-get install -y python-minimal" + ] + }, + { + "type": "ansible", + "playbook_file": "web-ami.yml" + } + ] +} -- 2.44.0