packer file
authorLorin Hochstein <lorin.hochstein@sendgrid.com>
Mon, 9 Feb 2015 03:27:01 +0000 (22:27 -0500)
committerLorin Hochstein <lorin.hochstein@sendgrid.com>
Mon, 9 Feb 2015 03:27:01 +0000 (22:27 -0500)
ch12/packer/web.json [new file with mode: 0644]

diff --git a/ch12/packer/web.json b/ch12/packer/web.json
new file mode 100644 (file)
index 0000000..435b589
--- /dev/null
@@ -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