This repository has been archived by the owner on Sep 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
centos-7.9-x86_64.json
270 lines (269 loc) · 10 KB
/
centos-7.9-x86_64.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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
{
"builders": [
{
"boot_command": [
"<up><wait><tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>"
],
"boot_wait": "10s",
"cpus": "{{ user `cpus` }}",
"disk_size": "{{user `disk_size`}}",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"guest_additions_url": "{{ user `guest_additions_url` }}",
"guest_os_type": "RedHat_64",
"hard_drive_interface": "sata",
"headless": "{{ user `headless` }}",
"http_directory": "{{user `http_directory`}}",
"iso_checksum": "{{user `iso_checksum_type`}}:{{user `iso_checksum`}}",
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
"memory": "{{ user `memory` }}",
"output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-virtualbox",
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_timeout": "10000s",
"ssh_username": "vagrant",
"type": "virtualbox-iso",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--clipboard-mode",
"bidirectional"
],
[
"modifyvm",
"{{.Name}}",
"--graphicscontroller",
"vmsvga"
],
[
"modifyvm",
"{{.Name}}",
"--accelerate3d",
"on"
],
[
"storageattach",
"{{.Name}}",
"--storagectl",
"SATA Controller",
"--port",
"1",
"--device",
"0",
"--type",
"dvddrive",
"--medium",
"emptydrive"
]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "{{ user `template` }}"
},
{
"boot_command": [
"<up><wait><tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>"
],
"boot_wait": "10s",
"cpus": "{{ user `cpus` }}",
"disk_size": "{{user `disk_size`}}",
"guest_os_type": "centos-64",
"headless": "{{ user `headless` }}",
"http_directory": "{{user `http_directory`}}",
"iso_checksum": "{{user `iso_checksum_type`}}:{{user `iso_checksum`}}",
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
"memory": "{{ user `memory` }}",
"network_adapter_type": "VMXNET3",
"output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-vmware",
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_timeout": "10000s",
"ssh_username": "vagrant",
"tools_upload_flavor": "linux",
"type": "vmware-iso",
"vm_name": "{{ user `template` }}",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"disk.EnableUUID": "TRUE",
"virtualHW.version": "17"
},
"vmx_remove_ethernet_interfaces": "{{ user `vmx_remove_ethernet_interfaces` }}"
},
{
"boot_command": [
"<up><wait><tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>"
],
"boot_wait": "10s",
"cpus": "{{ user `cpus` }}",
"disk_size": "{{user `disk_size`}}",
"guest_os_type": "centos",
"http_directory": "{{user `http_directory`}}",
"iso_checksum": "{{user `iso_checksum_type`}}:{{user `iso_checksum`}}",
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
"memory": "{{ user `memory` }}",
"output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-parallels",
"parallels_tools_flavor": "lin",
"prlctl_version_file": ".prlctl_version",
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_timeout": "10000s",
"ssh_username": "vagrant",
"type": "parallels-iso",
"vm_name": "{{ user `template` }}"
},
{
"boot_command": [
"<wait5><tab> text ks=hd:fd0:/ks.cfg<enter><wait5><esc>"
],
"boot_wait": "10s",
"cpus": "{{ user `cpus` }}",
"disk_size": "{{user `disk_size`}}",
"floppy_files": [
"{{user `http_directory`}}/{{user `ks_path`}}"
],
"generation": "{{user `hyperv_generation`}}",
"guest_additions_mode": "disable",
"http_directory": "{{user `http_directory`}}",
"iso_checksum": "{{user `iso_checksum_type`}}:{{user `iso_checksum`}}",
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
"memory": "{{ user `memory` }}",
"output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-hyperv",
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_timeout": "10000s",
"ssh_username": "vagrant",
"switch_name": "{{ user `hyperv_switch`}}",
"type": "hyperv-iso",
"vm_name": "{{ user `template` }}"
},
{
"boot_command": [
"<up><wait><tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>"
],
"boot_wait": "10s",
"cpus": "{{ user `cpus` }}",
"disk_size": "{{user `disk_size`}}",
"headless": "{{ user `headless` }}",
"http_directory": "{{user `http_directory`}}",
"iso_checksum": "{{user `iso_checksum_type`}}:{{user `iso_checksum`}}",
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
"memory": "{{ user `memory` }}",
"output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-qemu",
"shutdown_command": "echo 'vagrant'|sudo -S /sbin/halt -h -p",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_timeout": "10000s",
"ssh_username": "vagrant",
"type": "qemu",
"vm_name": "{{ user `template` }}"
}
],
"post-processors": [
{
"output": "{{ user `build_directory` }}/{{user `box_basename`}}.{{.Provider}}.box",
"type": "vagrant"
},
[
{
"cluster": "{{user `vmware_center_cluster_name`}}",
"datacenter": "{{user `vmware_center_datacenter`}}",
"datastore": "{{user `vmware_center_datastore`}}",
"disk_mode": "thin",
"esxi_host": "{{user `vmware_center_esxi_host`}}",
"host": "{{user `vmware_center_host`}}",
"insecure": true,
"keep_input_artifact": true,
"overwrite": true,
"password": "{{user `vmware_center_password`}}",
"type": "vsphere",
"username": "{{user `vmware_center_username`}}",
"vm_folder": "{{user `vmware_center_vm_folder`}}",
"vm_name": "{{user `vmware_center_vm_name`}}",
"vm_network": "{{user `vmware_center_vm_network`}}"
},
{
"datacenter": "{{user `vmware_center_datacenter`}}",
"folder": "/packer-templates/os/centos-7",
"host": "{{user `vmware_center_host`}}",
"insecure": true,
"password": "{{user `vmware_center_password`}}",
"type": "vsphere-template",
"username": "{{user `vmware_center_username`}}"
}
]
],
"provisioners": [
{
"environment_vars": [
"VAGRANT_USER_FINAL_PASSWORD={{user `vagrant_user_final_password`}}",
"CUSTOMISE_FOR_BUILDMACHINE={{user `customise_for_buildmachine`}}",
"HOME_DIR=/home/vagrant",
"http_proxy={{user `http_proxy`}}",
"https_proxy={{user `https_proxy`}}",
"no_proxy={{user `no_proxy`}}"
],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E sh -eux '{{.Path}}'",
"expect_disconnect": true,
"scripts": [
"{{template_dir}}/scripts/update.sh",
"{{template_dir}}/scripts/enable_epel_dkms.sh",
"{{template_dir}}/scripts/motd.sh",
"{{template_dir}}/scripts/sshd.sh",
"{{template_dir}}/scripts/networking.sh",
"{{template_dir}}/scripts/vagrant.sh",
"{{template_dir}}/scripts/virtualbox.sh",
"{{template_dir}}/scripts/vmware.sh",
"{{template_dir}}/scripts/parallels.sh",
"{{template_dir}}/scripts/customisation-for-buildmachines.sh",
"{{template_dir}}/scripts/cleanup.sh",
"{{template_dir}}/scripts/minimize.sh"
],
"type": "shell"
}
],
"sensitive-variables": [
"vmware_center_password",
"vagrant_user_final_password"
],
"variables": {
"box_basename": "centos-7.9",
"build_directory": "../../builds",
"build_timestamp": "{{isotime \"20060102150405\"}}",
"cpus": "1",
"customise_for_buildmachine": "0",
"disk_size": "65536",
"git_revision": "__unknown_git_revision__",
"guest_additions_url": "",
"headless": "",
"http_directory": "{{template_dir}}/http",
"http_proxy": "{{env `http_proxy`}}",
"https_proxy": "{{env `https_proxy`}}",
"hyperv_generation": "1",
"hyperv_switch": "{{env `hyperv_switch`}}",
"iso_checksum": "e33d7b1ea7a9e2f38c8f693215dd85254c3a4fe446f93f563279715b68d07987",
"iso_checksum_type": "sha256",
"iso_name": "CentOS-7-x86_64-DVD-2009.iso",
"ks_path": "7/ks.cfg",
"memory": "1024",
"mirror": "https://mirrors.edge.kernel.org/centos",
"mirror_directory": "7.9.2009/isos/x86_64",
"name": "centos-7.9",
"no_proxy": "{{env `no_proxy`}}",
"template": "centos-7.9-x86_64",
"vagrant_user_final_password": "{{env `VAGRANT_USER_FINAL_PASSWORD`}}",
"version": "TIMESTAMP",
"vmware_center_cluster_name": "{{env `VMWARECENTER_CLUSTER_NAME`}}",
"vmware_center_datacenter": "{{env `VMWARECENTER_DATACENTER`}}",
"vmware_center_datastore": "{{env `VMWARECENTER_DATASTORE`}}",
"vmware_center_esxi_host": "{{env `VMWARECENTER_ESXI_HOST`}}",
"vmware_center_host": "{{env `VMWARECENTER_HOST`}}",
"vmware_center_password": "{{env `VMWARECENTER_PASSWORD`}}",
"vmware_center_username": "{{env `VMWARECENTER_USERNAME`}}",
"vmware_center_vm_folder": "{{env `VMWARECENTER_VM_FOLDER`}}",
"vmware_center_vm_name": "{{env `VMWARECENTER_VM_NAME`}}",
"vmware_center_vm_network": "{{env `VMWARECENTER_VM_NETWORK`}}"
}
}