From 307b1320f797c1ac0a39fde1cf76b352837ea762 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Sun, 8 Feb 2015 22:27:01 -0500 Subject: [PATCH] packer file --- ch12/packer/web.json | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..435b589 --- /dev/null +++ b/ch12/packer/web.json @@ -0,0 +1,32 @@ +{ + "builders": [ + { + "type": "amazon-ebs", + "region": "us-east-1", + "source_ami": "ami-8caa1ce4", + "instance_type": "t1.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 ansible" + ] + }, + { + "type": "ansible-local", + "playbook_file": "web-ami.yml", + "role_paths": [ + "/Users/lorinhochstein/dev/oreilly-ansible/playbooks/roles/web" + ] + } + ] +} \ No newline at end of file -- 2.44.0