-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtemplate.json
83 lines (83 loc) · 2.56 KB
/
template.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"builders": [
{
"type": "virtualbox-iso",
"guest_os_type": "Ubuntu_64",
"iso_url": "http://releases.ubuntu.com/xenial/ubuntu-16.04.1-server-amd64.iso",
"iso_checksum": "29a8b9009509b39d542ecb229787cdf48f05e739a932289de9e9858d7c487c80",
"iso_checksum_type": "sha256",
"vm_name": "packer-ubuntu-16.04-amd64",
"disk_size": "{{ user `disk_size` }}",
"headless": "{{ user `headless` }}",
"boot_wait": "5s",
"http_directory": "http",
"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 ",
"auto=true ",
"priority=critical ",
"net.ifnames=0 ",
"url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg",
"<wait><enter>"
],
"ssh_wait_timeout": "30m",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"shutdown_command": "sudo systemctl poweroff",
"vboxmanage": [
["modifyvm", "{{ .Name }}", "--memory", "{{ user `memory` }}"],
["modifyvm", "{{ .Name }}", "--cpus", "{{ user `cpus` }}"]
]
}
],
"provisioners": [
{
"type": "shell",
"scripts": "scripts/install.sh"
},
{
"type": "ansible-local",
"playbook_file": "ansible/playbook.yml",
"playbook_dir": "ansible"
}
],
"post-processors": [
[
{
"type": "vagrant",
"compression_level": 9,
"output": "ubuntu-16.04-amd64.box",
"keep_input_artifact": false
},
{
"type": "atlas",
"artifact": "s12v/xenial64",
"artifact_type": "vagrant.box",
"metadata": {
"version": "20160904",
"description": "**Ubuntu 16.04.1 (Xenial Xerus)**. Baked with https://github.com/s12v/xenial\n - Ansible, Puppet, Chef\n - VBoxGuestAdditions 5.0.x\n - 80G disk\n - Predictable network interface names turned off",
"created_at": "{{timestamp}}",
"provider": "virtualbox"
}
}
]
],
"variables": {
"cpus": "1",
"memory": "512",
"hostname": "xenial",
"headless": "false",
"disk_size": "81920"
}
}