-
Notifications
You must be signed in to change notification settings - Fork 36
/
packer.json
53 lines (53 loc) · 1.26 KB
/
packer.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
{
"builders": [
{
"vm_name": "centos7",
"guest_os_type": "RedHat_64",
"iso_checksum_type": "sha256",
"iso_checksum": "9ed9ffb5d89ab8cca834afce354daa70a21dcb410f58287d6316259ff89758f5",
"iso_url": "http://ftp.riken.jp/Linux/centos/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1511.iso",
"type": "virtualbox-iso",
"ssh_password": "vagrant",
"ssh_username": "vagrant",
"ssh_wait_timeout": "50000s",
"headless": "true",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"2048"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"2"
]
],
"http_directory": ".",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter>"
],
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p"
}
],
"provisioners": [
{
"type": "shell",
"scripts": [
"vagrant.sh",
"virtualbox.sh",
"cleanup.sh"
],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'"
}
],
"post-processors": [
{
"type": "vagrant",
"compression_level": 9,
"output": "centos7.box"
}
]
}