-
Notifications
You must be signed in to change notification settings - Fork 8
/
hipster.json
90 lines (86 loc) · 2.89 KB
/
hipster.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"variables": {
"vm_name": "oi-hipster",
"oi_version": "20161030",
"iso_url": "http://mirror.ynet.sk/openindiana/isos/hipster/latest/OI-hipster-text-20161030.iso",
"iso_checksum": "6cb530313fa029621b7cb7e6f95ee6d7135d6e16efc170074bec081656e72749",
"ssh_username": "root",
"ssh_password": "template"
},
"builders": [
{
"boot_command": [
"47<enter><wait5>",
"7<enter><wait5><wait5><wait5><wait5>",
"1<enter><wait5>",
"<f2><wait5>",
"<f2><wait5>",
"<right><wait5>",
"<enter><wait5>",
"<f2><wait5>",
"<down><wait><down><wait><down><wait>",
"<f2><wait5>",
"<f2><wait5>",
"<f2><wait5>",
"vagrant<tab>",
"vagrant<tab>",
"<f2><wait5>",
"<f2><wait5>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<f8><wait>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"root<enter><wait>vagrant<enter><wait5>",
"ipadm create-if e1000g0<enter><wait>",
"ipadm create-addr -T dhcp e1000g0/v4<enter><wait>",
"echo 'nameserver 8.8.8.8' > /etc/resolv.conf<enter><wait>",
"cp /etc/nsswitch.dns /etc/nsswitch.conf<enter><wait>",
"sed -i -e 's/PermitRootLogin no/PermitRootLogin yes/' /etc/ssh/sshd_config<enter><wait>",
"svcadm restart ssh<enter><wait>"
],
"boot_wait": "30s",
"disk_size": 51200,
"guest_os_type": "OpenSolaris_64",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_url": "{{user `iso_url`}}",
"iso_checksum_type": "sha256",
"shutdown_command": "/usr/sbin/shutdown -g 0 -y -i 5",
"ssh_username": "root",
"ssh_password": "vagrant",
"ssh_port": 22,
"output_directory": "output",
"type": "virtualbox-iso",
"hard_drive_interface": "sata",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "2048" ],
[ "modifyvm", "{{.Name}}", "--cpus", "1" ],
[ "modifyvm", "{{.Name}}", "--vram", "16" ],
[ "modifyvm", "{{.Name}}", "--nictype1", "82545EM" ],
[ "setextradata", "global", "GUI/SuppressMessages", "all" ]
]
}
],
"post-processors": [
{
"compression_level": 9,
"output": "OI-hipster-{{user `oi_version`}}-{{.Provider}}.box",
"type": "vagrant"
}
],
"provisioners": [
{
"scripts": [
"scripts/vmtools.sh",
"scripts/vagrant.sh",
"scripts/cleanup.sh"
],
"type": "shell"
}
]
}