blob: d7588b653487fa212cbca953129cab55f4f34480 [file] [log] [blame]
Kelley Spoon98650152022-04-07 20:53:30 -05001{
2 "variables": {
3 "vpc_region": "us-east-1",
4 "ssh_username": "ec2-user"
5 },
6 "builders": [
7 {
8 "type": "amazon-ebs",
9 "name": "freebsd-12.3-mbedtls",
10 "vpc_id": "vpc-d28c0ca9",
11 "subnet_id": "subnet-a0d573af",
12 "region": "{{user `vpc_region`}}",
13 "source_ami_filter": {
14 "filters": {
Arthur She9540c4b2022-04-08 10:42:40 -070015 "image-id": "ami-0ffeb62fb62c3e3df",
16 "product-code": "ejmg4fgac56dgb0xac6m4fpis"
Kelley Spoon98650152022-04-07 20:53:30 -050017 },
Arthur She9540c4b2022-04-08 10:42:40 -070018 "owners": ["aws-marketplace"],
Kelley Spoon98650152022-04-07 20:53:30 -050019 "most_recent": true
20 },
Arthur She9540c4b2022-04-08 10:42:40 -070021 "instance_type": "t3.medium",
Kelley Spoon98650152022-04-07 20:53:30 -050022 "ssh_username": "{{user `ssh_username`}}",
Arthur She9540c4b2022-04-08 10:42:40 -070023 "ami_name": "jenkins-freebsd-amd64-{{isotime \"2006-01-02-1504\"}}",
Kelley Spoon98650152022-04-07 20:53:30 -050024 "ami_users": [
25 "987685672616"
26 ],
27 "snapshot_users": [
28 "987685672616"
29 ],
30 "launch_block_device_mappings": [
31 {
32 "device_name": "/dev/sda1",
33 "volume_type": "gp2",
34 "volume_size": "30",
35 "delete_on_termination": true
36 }
37 ]
38 }
39 ],
40 "provisioners": [
41 {
42 "type": "shell",
43 "inline": [ "sleep 60" ]
44 },
45 {
46 "type": "shell",
47 "script": "freebsd.sh",
48 "execute_command": "{{.Vars}} sudo -E sh -eux '{{.Path}}'"
49 }
50 ]
51}