forked from gwagner/packer-centos
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathubuntu-12_04-64.json
74 lines (74 loc) · 2.04 KB
/
ubuntu-12_04-64.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
{
"builders": [
{ "type": "virtualbox",
"guest_os_type": "Ubuntu_64",
"headless": true,
"iso_url": "http://releases.ubuntu.com/12.04/ubuntu-12.04.3-server-amd64.iso",
"iso_checksum_type": "md5",
"iso_checksum": "2cbe868812a871242cdcdd8f2fd6feb9",
"ssh_username": "root",
"ssh_password": "vagrant",
"ssh_wait_timeout": "20m",
"boot_wait": "4s",
"disk_size": 40000,
"http_directory": "./http_directory",
"boot_command" : [
"<esc><esc><enter><wait>",
"/install/vmlinuz noapic ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname=localhost ",
"fb=false debconf/frontend=noninteractive ",
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ",
"keyboard-configuration/variant=USA console-setup/ask_detect=false ",
"initrd=/install/initrd.gz -- <enter>"
],
"shutdown_command": "shutdown -P now",
"output_directory": "/tmp/packer"
}
],
"provisioners": [
{
"type": "shell",
"script": "provisioners/no-tty-sudo.sh"
},
{
"type": "shell",
"script": "provisioners/disable-selinux.sh"
},
{
"type": "shell",
"script": "provisioners/ec2-set-device-names.sh"
},
{
"type": "shell",
"script": "provisioners/prepare-vagrant-ssh-key.sh"
},
{
"type": "shell",
"script": "provisioners/install-guest-additions.sh"
},
{
"type": "shell",
"script": "provisioners/package-upgrades.sh"
},
{
"type": "shell",
"script": "provisioners/install-puppet.sh"
},
{
"type": "shell",
"script": "provisioners/prepare-local-percona-repo.sh"
},
{
"type": "shell",
"script": "provisioners/clean-empty-space.sh"
}
],
"post-processors": [
{
"type": "vagrant",
"output": "boxes/ubuntu-12_04-64_percona_{{.Provider}}.box"
}
]
}