-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpacker.json
74 lines (74 loc) · 1.82 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"variables": {
"cleanup_pause": "0",
"headless": "false",
"update": "true",
"vagrant_user": "vagrant",
"vagrant_home": "/home/vagrant"
},
"builders": [
{
"type": "virtualbox-iso",
"vm_name": "centos7.0",
"guest_os_type": "RedHat_64",
"iso_checksum_type": "none",
"iso_url": "CentOS-7.0-1406-x86_64-Everything.iso",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "50000s",
"headless": "{{ user `headless` }}",
"virtualbox_version_file": ".vbox_version",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"1024"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
],
"http_directory": "http",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter>"
],
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now"
}
],
"provisioners": [
{
"type": "salt-masterless",
"local_pillar_roots": "salt/roots/pillar",
"local_state_tree": "salt/roots/salt",
"minion_config": "salt/minion"
},
{
"type": "shell",
"environment_vars": [
"UPDATE={{user `update`}}",
"VAGRANT_USER={{user `vagrant_user`}}",
"VAGRANT_HOME={{user `vagrant_home`}}",
"CLEANUP_PAUSE={{user `cleanup_pause`}}"
],
"scripts": [
"script/update.sh",
"script/sshd.sh",
"script/vagrant.sh",
"script/virtualbox.sh",
"script/cleanup.sh"
],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
}
],
"post-processors": [
{
"type": "vagrant",
"compression_level": 9,
"output": "vagrant/centos7.0.box"
}
]
}