forked from TelekomLabs/packer-rhel7
-
Notifications
You must be signed in to change notification settings - Fork 1
/
template_ubuntu-14.04.json
56 lines (56 loc) · 1.64 KB
/
template_ubuntu-14.04.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
{
"builders": [
{
"type": "virtualbox-iso",
"guest_os_type":"Ubuntu_64",
"iso_checksum": "83aabd8dcf1e8f469f3c72fff2375195",
"iso_checksum_type": "md5",
"iso_url": "http://de.releases.ubuntu.com/14.04.2/ubuntu-14.04.2-server-amd64.iso",
"output_directory": "output_ubuntu-14.04",
"disk_size": 4096,
"format": "ovf",
"name": "ubuntu-14.04_{{isotime \"20060102\"}}",
"headless": true,
"http_directory": "http",
"boot_wait": "3s",
"ssh_username": "root",
"ssh_key_path": "./identity_build",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "shutdown -h now",
"boot_command": [
"<esc>",
"<esc>",
"<enter><wait>",
"/install/vmlinuz",
" auto",
" console-setup/ask_detect=false",
" console-setup/layoutcode=us",
" console-setup/modelcode=pc105",
" debconf/frontend=noninteractive",
" debian-installer=de_DE",
" fb=false",
" initrd=/install/initrd.gz",
" kbd-chooser/method=us",
" keyboard-configuration/layout=USA",
" keyboard-configuration/variant=USA",
" locale=en_US",
" netcfg/get_hostname=packer-build",
" netcfg/get_domain=packer.local",
" noapic",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ubuntu-14.04.cfg",
" -- ",
"<enter><wait>"
]
}
],
"provisioners": [
{
"type": "shell",
"scripts": [
"scripts/cloud-init_ubuntu.sh",
"scripts/cleanup_ubuntu.sh"
]
}
]
}