forked from UKHomeOffice/dq-packer-tableau-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpacker.json
63 lines (63 loc) · 1.7 KB
/
packer.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
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"variables": {
"access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
"drone_build_number": "{{env `DRONE_BUILD_NUMBER`}}",
"secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}"
},
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{user `access_key`}}",
"secret_key": "{{user `secret_key`}}",
"region": "eu-west-2",
"iam_instance_profile": "packer_builder",
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"name": "CentOS Linux 7 x86_64 HVM EBS ENA 1901_01-b7ee8a69-ee97-4a49-9e68-afaee216db2e*",
"root-device-type": "ebs"
},
"owners": [
"679593333241"
],
"most_recent": true
},
"launch_block_device_mappings": [
{
"device_name": "/dev/sda1",
"volume_size": 100,
"volume_type": "gp2",
"delete_on_termination": true
},
{
"device_name": "xvdb",
"volume_size": 50,
"volume_type": "gp2",
"delete_on_termination": true
},
{
"device_name": "xvdc",
"volume_size": 350,
"volume_type": "gp2",
"delete_on_termination": true
}
],
"ssh_username": "centos",
"instance_type": "r5d.4xlarge",
"ami_name": "dq-tableau-linux-{{user `drone_build_number`}}",
"ami_users": [
"483846886818",
"337779336338"
]
}
],
"provisioners": [
{
"type": "ansible",
"playbook_file": "./playbook.yml",
"extra_arguments": [
"--extra-vars", "ansible_shell_type=sh user_access_key={{user `access_key`}} secret_access_key={{user `secret_key`}}"
]
}
]
}