forked from OSC/ood-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpacker.json
68 lines (68 loc) · 2 KB
/
packer.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
{
"builders": [
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ood-el8.ks net.ifnames=0 biosdevname=0<enter><wait>"
],
"boot_wait": "5s",
"disk_size": 20000,
"memory": 1024,
"guest_os_type": "rhel8-64",
"headless": true,
"name": "ood-el8",
"type": "vmware-iso",
"iso_url": "http://mirrors.edge.kernel.org/centos/8.1.1911/isos/x86_64/CentOS-8.1.1911-x86_64-boot.iso",
"iso_checksum": "7fea13202bf2f26989df4175aace8fdc16e1137f7961c33512cbfad844008948",
"iso_checksum_type": "sha256",
"ssh_username": "root",
"ssh_password": "ood",
"ssh_timeout": "20m",
"shutdown_command": "shutdown -P now",
"http_directory": "."
},
{
"boot_command": [
"<esc>",
"<wait>linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ood-el7.ks net.ifnames=0 biosdevname=0<enter>"
],
"boot_wait": "5s",
"disk_size": 20000,
"guest_os_type": "rhel7-64",
"headless": true,
"name": "ood-el7",
"type": "vmware-iso",
"iso_url": "http://mirrors.edge.kernel.org/centos/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1908.iso",
"iso_checksum": "6ffa7ad44e8716e4cd6a5c3a85ba5675a935fc0448c260f43b12311356ba85ad",
"iso_checksum_type": "sha256",
"ssh_username": "root",
"ssh_password": "ood",
"ssh_timeout": "20m",
"shutdown_command": "shutdown -P now",
"http_directory": "."
}
],
"provisioners": [
{
"type": "shell",
"script": "ood-setup.sh"
},
{
"type": "shell",
"inline": ["yum install -y open-vm-tools"],
"only": ["ood-el8", "ood-el7"]
},
{
"type": "shell",
"script": "vm-cleanup.sh"
}
],
"post-processors": [
{
"type": "shell-local",
"inline": [
"ovftool output-${PACKER_BUILD_NAME}/packer-${PACKER_BUILD_NAME}.vmx output-${PACKER_BUILD_NAME}/packer-${PACKER_BUILD_NAME}.ova"
],
"only": ["ood-el8", "ood-el7"]
}
]
}