-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.json
51 lines (50 loc) · 1.19 KB
/
build.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"variables": {
"region": "",
"vpc_id": "",
"subnet_id": "",
"destination_regions": "",
"consul_version": ""
},
"builders": [
{
"name": "aws",
"type": "amazon-ebs",
"region": "{{user `region`}}",
"vpc_id": "{{user `vpc_id`}}",
"subnet_id": "{{user `subnet_id`}}",
"associate_public_ip_address": true,
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"name": "ubuntu-*",
"root-device-type": "ebs"
},
"owners": [
"238573916854"
],
"most_recent": true
},
"spot_price": "auto",
"spot_price_auto_product": "Linux/UNIX (Amazon VPC)",
"instance_type": "t2.micro",
"ami_regions": "{{user `destination_regions`}}",
"ssh_username": "ubuntu",
"ami_name": "consul-{{user `consul_version`}}-{{timestamp}}"
}
],
"provisioners": [
{
"type": "file",
"source": "file/systemd.service",
"destination": "/tmp/systemd.service"
},
{
"type": "shell",
"script": "shell/consul.sh",
"environment_vars": [
"CONSUL_VERSION={{user `consul_version`}}"
]
}
]
}