Created
July 30, 2014 01:57
-
-
Save feniix/730ce8920ab50ffae22d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "variables": { | |
| "aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}", | |
| "aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}" | |
| }, | |
| "builders": [ | |
| { | |
| "access_key": "{{user `aws_access_key`}}", | |
| "ami_description": "ubuntu 12.04.4 amd64 spantree ", | |
| "ami_name": "ubuntu 12.04.4 amd64 spantree {{isotime | clean_ami_name}}", | |
| "instance_type": "m1.medium", | |
| "region": "us-east-1", | |
| "secret_key": "{{user `aws_secret_key`}}", | |
| "source_ami": "ami-59a4a230", | |
| "ssh_username": "ubuntu", | |
| "tags": { | |
| "OS_Version": "Ubuntu", | |
| "Release": "precise", | |
| "Vendor": "spantree" | |
| }, | |
| "type": "amazon-ebs" | |
| } | |
| ], | |
| "provisioners": [ | |
| { | |
| "override": { | |
| "amazon-ebs": { | |
| "execute_command": "sudo -S sh '{{.Path}}'" | |
| } | |
| }, | |
| "scripts": [ | |
| "scripts/base.sh" | |
| ], | |
| "type": "shell" | |
| }, | |
| { | |
| "override": { | |
| "amazon-ebs": { | |
| "execute_command": "sudo -S sh '{{.Path}}'" | |
| } | |
| }, | |
| "scripts": [ | |
| "scripts/puppet.sh", | |
| "scripts/chef.sh", | |
| "scripts/oraclejava7.sh", | |
| "scripts/librarian.sh", | |
| "scripts/hiera-eyaml.sh", | |
| "scripts/cleanup.sh" | |
| ], | |
| "type": "shell" | |
| }, | |
| { | |
| "override": { | |
| "amazon-ebs": { | |
| "execute_command": "sudo -S sh '{{.Path}}'" | |
| } | |
| }, | |
| "scripts": [ | |
| "scripts/zerodisk.sh" | |
| ], | |
| "type": "shell" | |
| } | |
| ] | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment