mirror of
https://github.com/lingble/talos.git
synced 2026-03-20 04:03:37 +00:00
59 lines
1.9 KiB
JSON
59 lines
1.9 KiB
JSON
{
|
|
"variables": {
|
|
"built": "{{ isotime }}"
|
|
},
|
|
"builders": [
|
|
{
|
|
"type": "amazon-ebssurrogate",
|
|
"region": "{{ user `region` }}",
|
|
"ssh_pty": true,
|
|
"instance_type": "t2.micro",
|
|
"associate_public_ip_address": true,
|
|
"ssh_username": "ubuntu",
|
|
"ssh_timeout": "5m",
|
|
"source_ami": "ami-03fa1f014b48fa6bd",
|
|
"force_deregister": true,
|
|
"force_delete_snapshot": true,
|
|
"launch_block_device_mappings": [
|
|
{
|
|
"device_name": "/dev/xvdf",
|
|
"delete_on_termination": true,
|
|
"volume_size": 8,
|
|
"volume_type": "gp2"
|
|
}
|
|
],
|
|
"run_tags": {
|
|
"Name": "Packer - Talos {{ user `version` }}"
|
|
},
|
|
"run_volume_tags": {
|
|
"Name": "Packer - Talos {{ user `version` }}"
|
|
},
|
|
"ami_name": "talos-amd64-hvm-{{ user `version` }}",
|
|
"ami_description": "Talos (HVM)",
|
|
"ami_virtualization_type": "hvm",
|
|
"ami_regions": "{{ user `regions` }}",
|
|
"ami_root_device": {
|
|
"source_device_name": "/dev/xvdf",
|
|
"device_name": "/dev/xvda",
|
|
"delete_on_termination": true,
|
|
"volume_size": 8,
|
|
"volume_type": "gp2"
|
|
},
|
|
"ena_support": true,
|
|
"tags": {
|
|
"Name": "Talos {{ user `version` }}",
|
|
"Built": "{{ user `built` }}"
|
|
}
|
|
}
|
|
],
|
|
"provisioners": [
|
|
{
|
|
"type": "shell",
|
|
"inline": [
|
|
"curl -fsSL get.docker.com | sudo sh",
|
|
"sudo docker run --privileged --volume /dev:/dev autonomy/installer:{{ user `version` }} image -b /dev/xvdf -f -p aws -u none -e 'random.trust_cpu=on'"
|
|
]
|
|
}
|
|
]
|
|
}
|