forked from gwagner/packer-centos
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathubuntu-x86_64.json
108 lines (107 loc) · 2.83 KB
/
ubuntu-x86_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
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
{
"builders": [
{ "type": "virtualbox-iso",
"guest_os_type": "Ubuntu_64",
"headless": false,
"iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04-server-amd64.iso",
"iso_checksum_type": "md5",
"iso_checksum": "01545fa976c8367b4f0d59169ac4866c",
"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"
},
{
"type": "amazon-ebs",
"ami_block_device_mappings": [
{
"delete_on_termination": true,
"device_name": "/dev/sda"
}
],
"ami_name": "ubuntu-trusty-14.04-64_percona {{timestamp}}",
"ami_regions": [
"us-west-1",
"eu-west-1"
],
"instance_type": "t1.micro",
"region": "us-east-1",
"source_ami": "ami-8997afe0",
"ssh_timeout": "5m",
"ssh_username": "root",
"ssh_password": "vagrant"
}
],
"provisioners": [
{
"type": "shell",
"script": "provisioners/no-tty-sudo.sh"
},
{
"type": "shell",
"script": "provisioners/disable-selinux.sh"
},
{
"script": "provisioners/disable-ssh-usedns.sh",
"type": "shell"
},
{
"type": "shell",
"script": "provisioners/ec2-set-device-names.sh"
},
{
"override": {
"amazon-ebs": {
"script": "provisioners/prepare-ec2-ssh-key.sh"
}
},
"script": "provisioners/prepare-vagrant-ssh-key.sh",
"type": "shell"
},
{
"script": "provisioners/prepare-vagrant-user.sh",
"type": "shell"
},
{
"type": "shell",
"script": "provisioners/install-guest-additions.sh"
},
{
"type": "shell",
"script": "provisioners/package-upgrades.sh"
},
{
"type": "shell",
"script": "provisioners/install-puppet.sh"
},
{
"script": "provisioners/remove-extra-locales.sh",
"type": "shell"
},
{
"type": "shell",
"script": "provisioners/clean-empty-space.sh"
}
],
"post-processors": [
{
"output": "boxes/ubuntu-12_04-64_percona_{{.Provider}}.box",
"type": "vagrant"
}
]
}