-
Notifications
You must be signed in to change notification settings - Fork 0
/
packer.json
34 lines (31 loc) · 913 Bytes
/
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
{
"builders": [
{
"type": "amazon-ebs",
"region": "{{user `region` }}",
"subnet_id": "{{user `subnet_id` }}",
"source_ami": "{{ user `base_ami` }}",
"instance_type": "{{user `instance_type` }}",
"ssh_username": "{{user `ssh_username`}}",
"ami_name": "datanexus-{{ user `base` }}-base-{{ timestamp }}",
"associate_public_ip_address": false,
"tags": {
"Name": "datanexus-{{ user `application` }}-instance",
"Application": "{{ user `application` }}",
"Owner": "{{ user `owner` }}",
"Base": "{{ user `base_ami` }}"
}
}
],
"provisioners": [
{
"type": "ansible",
"user": "{{ user `ssh_username` }}",
"playbook_file": "{{ user `source_dir` }}/roles/packer/playbook.yml",
"extra_arguments": [
"--extra-vars",
"ami_user={{ user `ssh_username` }}"
]
}
]
}