-
Notifications
You must be signed in to change notification settings - Fork 24
/
rhel7.json
125 lines (125 loc) · 3.84 KB
/
rhel7.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
{
"provisioners": [{
"type": "shell",
"scripts": [
"scripts/base.sh",
"scripts/epel.sh",
"scripts/cleanup.sh",
"scripts/zerodisk.sh"
],
"override": {
"centos-7-vbox": {
"execute_command": "echo 'packer'|sudo -S sh '{{.Path}}'"
}
},
"only": ["centos-7-vbox"]
}, {
"type": "shell",
"scripts": [
"scripts/base.sh",
"scripts/epel.sh",
"scripts/cloud.sh",
"scripts/cleanup.sh",
"scripts/zerodisk.sh"
],
"override": {
"centos-7-cloud-kvm": {
"execute_command": "sh '{{.Path}}'"
}
},
"only": ["centos-7-cloud-kvm", "oel-7-cloud-kvm"]
}],
"builders": [{
"name": "centos-7-vbox",
"type": "virtualbox-iso",
"boot_command": [
"<tab> append initrd=initrd.img inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 10140,
"guest_os_type": "RedHat_64",
"http_directory": "http",
"iso_checksum": "ee505335bcd4943ffc7e6e6e55e5aaa8da09710b6ceecda82a5619342f1d24d9",
"iso_checksum_type": "sha256",
"iso_url": "http://ftp-stud.fht-esslingen.de/pub/Mirrors/centos/7.0.1406/isos/x86_64/CentOS-7.0-1406-x86_64-DVD.iso",
"ssh_username": "packer",
"ssh_password": "packer",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo '/sbin/halt -h -p' > shutdown.sh; echo 'packer'|sudo -S sh 'shutdown.sh'",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"virtualbox_version_file": ".vbox_version",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"480"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
]
}, {
"name": "centos-7-cloud-kvm",
"type": "qemu",
"iso_checksum": "ee505335bcd4943ffc7e6e6e55e5aaa8da09710b6ceecda82a5619342f1d24d9",
"iso_checksum_type": "sha256",
"iso_url": "http://ftp-stud.fht-esslingen.de/pub/Mirrors/centos/7.0.1406/isos/x86_64/CentOS-7.0-1406-x86_64-DVD.iso",
"ssh_wait_timeout": "30s",
"shutdown_command": "shutdown -P now",
"disk_size": 10140,
"format": "qcow2",
"headless": false,
"accelerator": "kvm",
"http_directory": "http",
"http_port_min": 10082,
"http_port_max": 10089,
"ssh_host_port_min": 2222,
"ssh_host_port_max": 2229,
"ssh_username": "root",
"ssh_password": "changeme",
"ssh_port": 22,
"ssh_wait_timeout": "90m",
"net_device": "virtio-net",
"disk_interface": "virtio",
"boot_command": [
"<tab> append initrd=initrd.img inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
]
},{
"name": "oel-7-cloud-kvm",
"type": "qemu",
"iso_checksum": "14107114f3eece76d16e5ec3fee5f524b09f9829b0ac38474ee676ddd4d2b9c2",
"iso_checksum_type": "sha256",
"iso_url": "file:///home/chris/images/V46135-01.iso",
"ssh_wait_timeout": "30s",
"shutdown_command": "shutdown -P now",
"disk_size": 10140,
"format": "qcow2",
"headless": false,
"accelerator": "kvm",
"http_directory": "http",
"http_port_min": 10082,
"http_port_max": 10089,
"ssh_host_port_min": 2222,
"ssh_host_port_max": 2229,
"ssh_username": "root",
"ssh_password": "changeme",
"ssh_port": 22,
"ssh_wait_timeout": "90m",
"net_device": "virtio-net",
"disk_interface": "virtio",
"boot_command": [
"<tab> append initrd=initrd.img inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
]
}],
"post-processors": [{
"type": "vagrant",
"compression_level": 1,
"keep_input_artifact": true,
"only": ["centos-7-vbox"]
}]
}