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

diff --git a/ch12/packer/web-ami.yml b/ch12/packer/web-ami.yml
new file mode 100644 (file)
index 0000000..1136c86
--- /dev/null
@@ -0,0 +1,6 @@
+---
+- name: configure a webserver as an ami
+  hosts: localhost
+  sudo: True
+  roles:
+    - web
index 435b589..41f08ab 100644 (file)
@@ -2,9 +2,9 @@
   "builders": [
     {
       "type": "amazon-ebs",
-      "region": "us-east-1",
-      "source_ami": "ami-8caa1ce4",
-      "instance_type": "t1.micro",
+      "region": "us-west-1",
+      "source_ami": "ami-50120b15",
+      "instance_type": "t2.micro",
       "ssh_username": "ubuntu",
       "ami_name": "web-nginx-{{timestamp}}",
       "tags": {
@@ -25,8 +25,8 @@
       "type": "ansible-local",
       "playbook_file": "web-ami.yml",
       "role_paths": [
-        "/Users/lorinhochstein/dev/oreilly-ansible/playbooks/roles/web"
+        "/Users/lorinhochstein/dev/ansiblebook/ch12/playbooks/roles/web"
       ]
     }
   ]
-}
\ No newline at end of file
+}