46 lines
No EOL
1.3 KiB
JSON
46 lines
No EOL
1.3 KiB
JSON
{
|
|
"builders": [{
|
|
"type": "amazon-ebs",
|
|
"access_key": "{{user `aws_access_key`}}",
|
|
"secret_key": "{{user `aws_secret_key`}}",
|
|
"region": "eu-central-1",
|
|
"source_ami_filter": {
|
|
"filters": {
|
|
"virtualization-type": "hvm",
|
|
"name": "ubuntu/images/*ubuntu-focal-20.04-amd64-server-*",
|
|
"root-device-type": "ebs"
|
|
},
|
|
"owners": ["099720109477"],
|
|
"most_recent": true
|
|
},
|
|
"instance_type": "t2.micro",
|
|
"ssh_username": "ubuntu",
|
|
"ami_name": "Jamulus-{{timestamp}}",
|
|
"launch_block_device_mappings": [{
|
|
"device_name":"/dev/sda1",
|
|
"volume_size":100,
|
|
"volume_type":"gp2",
|
|
"encrypted":false,
|
|
"delete_on_termination":true
|
|
}],
|
|
"tags": {
|
|
"Name": "jamulus-{{timestamp}}"
|
|
}
|
|
}],
|
|
"provisioners": [
|
|
{
|
|
"type": "file",
|
|
"source": "payload/init.d/node_exporter.service",
|
|
"destination": "/tmp/node_exporter.service"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"source": "payload/init.d/jamulus.service",
|
|
"destination": "/tmp/jamulus.service"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"script": "scripts/deps.sh"
|
|
}
|
|
]
|
|
} |