From: Lorin Hochstein Date: Mon, 9 Feb 2015 03:27:01 +0000 (-0500) Subject: packer file X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=307b1320f797c1ac0a39fde1cf76b352837ea762;p=ansiblebook.git packer file --- 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