-
Notifications
You must be signed in to change notification settings - Fork 6
/
stackios.json
63 lines (63 loc) · 1.97 KB
/
stackios.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
{
"provisioners": [
{
"type": "file",
"source": "{{user `iso_path`}}/{{user `vbox_dependencies_pallet`}}",
"destination": "/root/{{user `vbox_dependencies_pallet`}}"
},
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/network.sh",
"scripts/vagrant.sh",
"scripts/vboxguest.sh",
"scripts/stacki.sh",
"scripts/shrink.sh"
]
}
],
"builders": [
{
"boot_command": [
"<tab> ip=dhcp",
" stacki.attrfile=http://{{ .HTTPIP }}:{{ .HTTPPort }}/site.attrs",
" stacki.palletfile=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rolls.xml",
" <enter><wait>"
],
"http_directory": "http",
"headless": "{{user `build_headless`}}",
"disk_size": 88000,
"guest_additions_path": "VBoxGuestAdditions.iso",
"guest_os_type": "RedHat_64",
"iso_url": "{{user `iso_path`}}/{{user `iso_name`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "4096"],
["modifyvm", "{{.Name}}", "--nic2", "intnet"],
["modifyvm", "{{.Name}}", "--nictype2", "82540EM"],
["modifyvm", "{{.Name}}", "--macaddress2", "0800d00dc189"]
],
"ssh_username": "root",
"ssh_password": "{{user `ssh_password`}}",
"ssh_wait_timeout": "35m",
"ssh_pty": "true",
"shutdown_command": "echo 'root' | sudo -S shutdown -P now",
"type": "virtualbox-iso"
}],
"post-processors": [
{
"type": "vagrant",
"output": "builds/stackiup-5.0-7.x-{{.Provider}}.box"
}],
"variables": {
"build_headless": "true",
"iso_path": "./isos",
"iso_name": "stackios-4.0_20170913_9b37901-7.x.x86_64.disk1.iso",
"iso_checksum": "5a33490180028685e5092242fe4b9908",
"iso_checksum_type": "md5",
"ssh_password": "password",
"vbox_dependencies_pallet": "vbox_deps-4.0_20170727-7.x.x86_64.disk1.iso"
}
}