2017-05-15 18:56:41 +00:00
|
|
|
{
|
|
|
|
"builders": [{
|
|
|
|
"type": "amazon-ebs",
|
|
|
|
"region": "us-east-1",
|
2017-06-24 23:24:24 +00:00
|
|
|
"source_ami": "ami-80861296",
|
2017-05-15 18:56:41 +00:00
|
|
|
"instance_type": "t2.medium",
|
|
|
|
"ssh_username": "ubuntu",
|
2017-06-15 22:48:18 +00:00
|
|
|
"ami_name": "nomad-packer {{timestamp}}",
|
2017-05-15 18:56:41 +00:00
|
|
|
"ami_groups": ["all"]
|
|
|
|
}],
|
|
|
|
"provisioners": [
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"inline": [
|
|
|
|
"sudo mkdir /ops",
|
|
|
|
"sudo chmod 777 /ops"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "../../shared",
|
|
|
|
"destination": "/ops"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "../../examples",
|
|
|
|
"destination": "/ops"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"script": "../../shared/scripts/setup.sh"
|
|
|
|
}]
|
|
|
|
}
|