-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathami.json
38 lines (38 loc) · 1.06 KB
/
ami.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
{
"min_packer_version": "1.5.0",
"variables": {
"preinstalled_test_subject_versions_ansible_vars": "{{env `PREINSTALLED_TEST_SUBJECT_VERSIONS_ANSIBLE_VARS`}}"
},
"builders": [
{
"type": "amazon-ebs",
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"name": "ubuntu/images/*ubuntu-bionic-18.04-amd64-server-*",
"root-device-type": "ebs"
},
"owners": ["099720109477"],
"most_recent": true
},
"instance_type": "c5.large",
"ssh_username": "ubuntu",
"ami_name": "vector/images/hvm-ssd/test-harness-amd64-{{ isotime \"2006-01-02\" | clean_resource_name }}-{{ timestamp }}"
}
],
"provisioners": [
{
"type": "shell",
"script": "bootstrap.sh"
},
{
"type": "ansible",
"playbook_file": "../ansible/ami.yml",
"extra_arguments": [
"--extra-vars", "{{user `preinstalled_test_subject_versions_ansible_vars`}}",
"--extra-vars", "ansible_python_interpreter=/usr/bin/python3",
"-vv"
]
}
]
}