forked from carterventures/packer-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
system-build.json
52 lines (41 loc) · 1.47 KB
/
system-build.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
{
"builders":[
{
"type": "vmware",
"iso_url": "http://releases.ubuntu.com/12.04/ubuntu-12.04.2-server-amd64.iso",
"iso_checksum": "af5f788aee1b32c4b2634734309cc9e9",
"iso_checksum_type": "md5",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "300s",
"shutdown_command": "echo vagrant | sudo -S shutdown -P now",
"output_directory": "example-ubuntu-vm",
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz noapic ",
"preseed/url=https://raw.github.com/chad-thompson/packer-example/master/ubuntu-simple-preseed.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=gb ",
"hostname=vagrant-precise64 ",
"fb=false debconf/frontend=noninteractive ",
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=GB ",
"keyboard-configuration/variant=GB console-setup/ask_detect=false ",
"initrd=/install/initrd.gz -- <enter>" ]
},
{
"type": "amazon-ebs",
"access_key": "ACCESS KEY",
"secret_key": "SECRET ACCESS KEY",
"region": "us-east-1",
"source_ami": "ami-d0f89fb9",
"instance_type": "t1.micro",
"ssh_username": "ubuntu",
"ami_name": "packer-quick-start {{.CreateTime}}"
}
],
"provisioners": [
{"type": "shell",
"script": "configure.sh",
"execute_command": "echo 'vagrant' | sudo -S sh '{{ .Path }}'"
}
]
}