forked from retspen/vagrant-packer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFedora-20.json
52 lines (45 loc) · 1.62 KB
/
Fedora-20.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
{
"variables": {
"ssh_name": "vagrant",
"ssh_pass": "vagrant"
},
"builders": [{
"type": "virtualbox-iso",
"virtualbox_version_file": ".vbox_version",
"headless": false,
"guest_os_type": "Fedora_64",
"disk_size": 81920,
"hard_drive_interface": "sata",
"iso_url": "http://dl.fedoraproject.org/pub/fedora/linux/releases/20/Fedora/x86_64/iso/Fedora-20-x86_64-netinst.iso",
"iso_checksum": "376be7d4855ad6281cb139430606a782fd6189dcb01d7b61448e915802cc350f",
"iso_checksum_type": "sha256",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/fedora20/anaconda-ks.cfg<enter><wait>"
],
"boot_wait": "12s",
"http_directory": "http",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"ssh_username": "{{user `ssh_name`}}",
"ssh_password": "{{user `ssh_pass`}}",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "512"],
["modifyvm", "{{.Name}}", "--cpus", "2"]
],
"shutdown_command": "echo '{{user `ssh_name`}}'|sudo -S /sbin/halt -h -p"
}],
"post-processors": [{
"output": "build/Fedora-20.box",
"type": "vagrant"
}],
"provisioners": [{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/fedora20/vboxguest.sh",
"scripts/fedora20/vagrant.sh",
"scripts/fedora20/compact.sh"
]
}]
}