bc6ad011fe
As we add new Linux targets for E2E, the existing setup.sh script will be used only for Ubuntu. Rather than have the service and config files echo'd from the script, move them into files we upload so they can be reused. Includes some general noise reduction in the setup.sh script and removal of unused bits.
28 lines
526 B
JSON
28 lines
526 B
JSON
{
|
|
"builders": [
|
|
{
|
|
"type": "amazon-ebs",
|
|
"region": "us-east-1",
|
|
"source_ami": "ami-7ad76705",
|
|
"instance_type": "t2.medium",
|
|
"ssh_username": "ubuntu",
|
|
"iam_instance_profile": "packer_build",
|
|
"ami_name": "nomad-e2e-{{timestamp}}",
|
|
"tags": {
|
|
"OS": "Ubuntu"
|
|
}
|
|
}
|
|
],
|
|
"provisioners": [
|
|
{
|
|
"type": "file",
|
|
"source": "./linux",
|
|
"destination": "/tmp/linux"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"script": "./linux/setup.sh"
|
|
}
|
|
]
|
|
}
|