-
Notifications
You must be signed in to change notification settings - Fork 1
/
image.json
45 lines (43 loc) · 1.29 KB
/
image.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
{
"variables": {
"linode_token": "{{env `LINODE_TOKEN`}}",
},
"builders": [
{
"type": "linode",
"linode_token": "{{user `linode_token`}}",
"region": "us-east",
"swap_size": 256,
"image": "linode/ubuntu18.04",
"instance_type": "g6-standard-1",
"instance_label": "packer-wireguard-{{timestamp}}",
"image_label": "packer-wireguard-{{timestamp}}",
"image_description": "",
"ssh_username": "root"
}
],
"provisioners": [
{
"type": "ansible",
"playbook_file": "ansible/linode/bootstrap.yml",
"extra_arguments": [
"--extra-vars", "ansible_python_interpreter=/usr/bin/python3"
]
},
{
"type": "ansible",
"playbook_file": "ansible/linode/setup.yml",
"extra_arguments": [
"--extra-vars", "ansible_python_interpreter=/usr/bin/python3"
]
},
{
"type": "ansible",
"playbook_file": "ansible/main.yml",
"extra_arguments": [
"--extra-vars", "ansible_python_interpreter=/usr/bin/python3",
"--skip-tags", "users"
]
}
]
}