This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
forked from chef/bento
-
Notifications
You must be signed in to change notification settings - Fork 9
/
solaris-11-x86.json
159 lines (159 loc) · 6.19 KB
/
solaris-11-x86.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{
"builders": [
{
"boot_command": [
"e<wait>",
"<down><down><down><down><down><wait>",
"<end><wait>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><wait>",
"false<wait>",
"<f10><wait>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"root<enter><wait><wait>",
"solaris<enter><wait><wait>",
"<wait10>",
"while (true); do sleep 5; test -f /a/etc/sudoers && grep -v \"vagrant\" \"/a/etc/sudoers\" 2> /dev/null<wait>",
" && echo \"vagrant ALL=(ALL) NOPASSWD: ALL\" >> /a/etc/sudoers && break ; done &<enter><wait>",
"<enter>while (true); do grep \"You may wish to reboot\" \"/var/svc/log/application-auto-installer:default.log\" 2> /dev/null<wait>",
" && reboot; sleep 10; done &<enter><wait>",
"sleep 5; curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/default.xml -o default.xml;<wait>",
"curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/profile.xml -o profile.xml;<wait>",
"cp default.xml /system/volatile/ai.xml;<wait>",
"mkdir /system/volatile/profile;<wait>",
"cp profile.xml /system/volatile/profile/profile.xml;<wait>",
"svcadm enable svc:/application/auto-installer:default;<wait>",
"<enter><wait10><wait><wait>",
"<enter><wait>",
"tail -f /var/svc/log/application-auto-installer\\:default.log<enter><wait>"
],
"boot_wait": "5s",
"disk_size": "{{user `disk_size`}}",
"guest_additions_mode": "attach",
"guest_os_type": "Solaris11_64",
"headless": "{{ user `headless` }}",
"http_directory": "http/solaris-11",
"iso_checksum": "30d9ae857f62938c21307722d031e0dc",
"iso_checksum_type": "md5",
"iso_url": "{{user `mirror`}}/sol-11_3-ai-x86.iso",
"output_directory": "packer-solaris-11.3-x86_64-virtualbox",
"shutdown_command": "echo 'vagrant'|sudo -i init 5",
"shutdown_timeout": "10m",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_username": "vagrant",
"ssh_wait_timeout": "10000s",
"type": "virtualbox-iso",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"{{ user `memory` }}"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"{{ user `cpus` }}"
]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "{{ user `template` }}"
},
{
"boot_command": [
"e<wait>",
"<down><down><down><down><down><wait>",
"<end><wait>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><wait>",
"false<wait>",
"<f10><wait>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"root<enter><wait><wait>",
"solaris<enter><wait><wait>",
"<wait10>",
"while (true); do sleep 5; test -f /a/etc/sudoers && grep -v \"vagrant\" \"/a/etc/sudoers\" 2> /dev/null<wait>",
" && echo \"vagrant ALL=(ALL) NOPASSWD: ALL\" >> /a/etc/sudoers && break ; done &<enter><wait>",
"<enter>while (true); do grep \"You may wish to reboot\" \"/var/svc/log/application-auto-installer:default.log\" 2> /dev/null<wait>",
" && reboot; sleep 10; done &<enter><wait>",
"sleep 5; curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/default.xml -o default.xml;<wait>",
"curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/profile.xml -o profile.xml;<wait>",
"cp default.xml /system/volatile/ai.xml;<wait>",
"mkdir /system/volatile/profile;<wait>",
"cp profile.xml /system/volatile/profile/profile.xml;<wait>",
"svcadm enable svc:/application/auto-installer:default;<wait>",
"<enter><wait10><wait><wait>",
"<enter><wait>",
"tail -f /var/svc/log/application-auto-installer\\:default.log<enter><wait>"
],
"boot_wait": "5s",
"disk_size": "{{user `disk_size`}}",
"guest_os_type": "solaris11-64",
"headless": "{{ user `headless` }}",
"http_directory": "http/solaris-11",
"iso_checksum": "30d9ae857f62938c21307722d031e0dc",
"iso_checksum_type": "md5",
"iso_url": "{{user `mirror`}}/sol-11_3-ai-x86.iso",
"output_directory": "packer-solaris-11.3-x86_64-vmware",
"shutdown_command": "echo 'vagrant'|sudo -i init 5",
"shutdown_timeout": "10m",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_username": "vagrant",
"ssh_wait_timeout": "10000s",
"type": "vmware-iso",
"vm_name": "{{ user `template` }}",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "{{ user `memory` }}",
"numvcpus": "{{ user `cpus` }}"
}
}
],
"post-processors": [
{
"output": "builds/{{user `box_basename`}}.{{.Provider}}.box",
"type": "vagrant"
}
],
"provisioners": [
{
"destination": "/tmp/bento-metadata.json",
"source": "{{user `metadata`}}",
"type": "file"
},
{
"environment_vars": [],
"execute_command": "echo 'vagrant'|sudo -S bash {{.Path}}",
"scripts": [
"scripts/common/metadata.sh",
"scripts/solaris/update.sh",
"scripts/solaris/vagrant.sh",
"scripts/solaris/vmtools.sh",
"scripts/solaris/minimize.sh"
],
"type": "shell"
}
],
"variables": {
"_DOWNLOAD_SITE": "http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html",
"_README": "You must download the automated installer iso from the following page, and then place it in the packer_cache dir",
"arch": "64",
"box_basename": "solaris-11.3",
"build_timestamp": "{{isotime \"20060102150405\"}}",
"cpus": "1",
"disk_size": "10360",
"git_revision": "__unknown_git_revision__",
"headless": "",
"memory": "2048",
"metadata": "floppy/dummy_metadata.json",
"mirror": "./packer_cache",
"name": "solaris-11.3",
"template": "solaris-11.3-x86",
"version": "2.0.TIMESTAMP"
}
}