Skip to content

Instantly share code, notes, and snippets.

@emilisto
Created August 15, 2013 09:21
Show Gist options
  • Save emilisto/6239521 to your computer and use it in GitHub Desktop.
Save emilisto/6239521 to your computer and use it in GitHub Desktop.
{
"variables": {
"salt_role": "common"
},
"provisioners": [
{
"type": "shell",
"scripts": [
"scripts/ec2-ephemeral-tmp.sh"
],
"override": {
"amazon-ebs": {
"execute_command": "SALT_ROLE={{variable 'salt_role' }} sudo -E sh '{{.Path}}'"
}
}
}
],
"builders": [
{
"type": "amazon-ebs",
"access_key": "XYZ",
"secret_key": "XYZ",
"region": "eu-west-1",
"source_ami": "ami-6975691d",
"instance_type": "m3.xlarge",
"ssh_username": "ubuntu",
"security_group_id": "default",
"ami_name": "Base {{timestamp}}"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment