-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpacker.json
More file actions
122 lines (122 loc) · 3.74 KB
/
packer.json
File metadata and controls
122 lines (122 loc) · 3.74 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"builders": [
{
"name": "amd64",
"type": "virtualbox-iso",
"guest_os_type": "Ubuntu_64",
"iso_url": "{{user `mirror`}}/16.04/ubuntu-16.04.3-server-amd64.iso",
"iso_checksum": "{{user `iso_amd64_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"output_directory": "build",
"vm_name": "open-deliver-ubuntu-16.04-amd64",
"disk_size": 15000,
"headless": "true",
"http_directory": "config",
"boot_wait": "5s",
"boot_command": [
"<enter><wait>",
"<f6><esc>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs>",
"/install/vmlinuz ",
"initrd=/install/initrd.gz ",
"net.ifnames=0 ",
"auto-install/enable=true ",
"debconf/priority=critical ",
"preseed/url=http://{{.HTTPIP}}:{{.HTTPPort}}/preseed.cfg",
"<enter>"
],
"ssh_timeout": "60m",
"ssh_username": "ubuntu",
"ssh_password": "ubuntu",
"shutdown_command": "sudo systemctl poweroff",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
512
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
1
]
]
},
{
"name": "i386",
"type": "virtualbox-iso",
"iso_url": "{{user `mirror`}}/16.04/ubuntu-16.04.4-server-i386.iso",
"iso_checksum": "{{user `iso_i386_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"output_directory": "build",
"vm_name": "open-deliver-ubuntu-16.04-i386",
"disk_size": 15000,
"headless": "true",
"http_directory": "config",
"boot_wait": "5s",
"boot_command": [
"<enter><wait>",
"<f6><esc>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs>",
"/install/vmlinuz ",
"initrd=/install/initrd.gz ",
"net.ifnames=0 ",
"auto-install/enable=true ",
"debconf/priority=critical ",
"preseed/url=http://{{.HTTPIP}}:{{.HTTPPort}}/preseed.cfg",
"<enter>"
],
"ssh_timeout": "60m",
"ssh_username": "ubuntu",
"ssh_password": "ubuntu",
"shutdown_command": "sudo systemctl poweroff",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", 512],
["modifyvm", "{{.Name}}", "--cpus", 1],
["modifyvm", "{{.Name}}", "--pae", "on"]
]
}
],
"provisioners": [
{
"type": "shell",
"scripts": [
"setup.sh"
]
},
{
"type": "ansible",
"playbook_file": "./packer.yml"
}
],
"variables": {
"compression_level": "6",
"cpus": "1",
"disk_size": "40000",
"headless": "false",
"iso_amd64_checksum": "a06cd926f5855d4f21fb4bc9978a35312f815fbda0d0ef7fdc846861f4fc4600",
"iso_i386_checksum": "e514191df0c633e92966b1b4f39966d8a4e4c30665dcc2e5a774a6bfb881ac87",
"iso_checksum_type": "sha256",
"memory": "512",
"mirror": "http://releases.ubuntu.com",
"ssh_timeout": "60m"
}
}