-
Notifications
You must be signed in to change notification settings - Fork 0
/
RedHat8.json
104 lines (104 loc) · 2.87 KB
/
RedHat8.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
{
"builders": [
{
"type": "vmware-iso",
"iso_url": "isos/rhel-8.3-x86_64-dvd.iso",
"iso_checksum": "30fd8dff2d29a384bd97886fa826fa5be872213c81e853eae3f9d9674f720ad0",
"ssh_username": "root",
"ssh_password": "",
"ssh_wait_timeout": "30m",
"disk_type_id": "0",
"disk_size": "48000",
"disk_additional_size": [ "32000", "10240" ],
"tools_upload_flavor": "linux",
"guest_os_type": "rhel7_64Guest",
"shutdown_command": "sudo /sbin/halt -p",
"http_directory": "http",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks-redhat-8.cfg<enter><wait>"
],
"vmx_data": {
"memsize": "2048",
"numvcpus": "2",
"ethernet0.virtualDev": "vmxnet3",
"scsi0.virtualdev": "pvscsi",
"virtualhw.productcompatibility": "hosted",
"virtualhw.version": "15",
"vcpu.hotadd": "TRUE",
"mem.hotadd": "TRUE",
"tools.upgrade.policy": "manual"
}
},
{
"CPUs": 1,
"RAM": 1024,
"RAM_reserve_all": false,
"boot_command": [
"<tab> text ks=hd:fd0:/ks-redhat-8.cfg<enter><wait>"
],
"cluster": "homecluster",
"convert_to_template": true,
"datacenter": "homelab",
"datastore": "nas",
"disk_controller_type": ["pvscsi","pvscsi","pvscsi"],
"floppy_files": [
"{{template_dir}}/http/ks-redhat-7.cfg"
],
"guest_os_type": "rhel7_64Guest",
"host": "192.168.100.156",
"insecure_connection": "true",
"iso_checksum": "30fd8dff2d29a384bd97886fa826fa5be872213c81e853eae3f9d9674f720ad0",
"iso_paths": [
"[nas] isos/rhel-8.3-x86_64-dvd.iso"
],
"network_adapters": [
{
"network": "VM Network",
"network_card": "vmxnet3"
}
],
"notes": "built via packer",
"password": "",
"shutdown_command": "sudo /sbin/halt -p",
"ssh_password": "",
"ssh_timeout": "30m",
"ssh_username": "ea",
"storage": [
{
"disk_size": 48000,
"disk_controller_index": 0,
"disk_thin_provisioned": true
},
{
"disk_size": 32000,
"disk_controller_index": 1,
"disk_thin_provisioned": true
},
{
"disk_size": 10240,
"disk_controller_index": 2,
"disk_thin_provisioned": true
}
],
"type": "vsphere-iso",
"vcenter_server": "192.168.100.155",
"username": "[email protected]",
"vm_name": "packer-rhel-8"
}
],
"provisioners": [
{
"execute_command": "sudo {{.Vars}} sh {{.Path}}",
"scripts": [
"scripts/ea.sh",
"scripts/cleanup.sh",
"scripts/zerodisk.sh",
"scripts/sleep.sh"
],
"type": "shell"
}
],
"variables": {
"version": "{{env `VERSION`}}"
}
}