-
Notifications
You must be signed in to change notification settings - Fork 26
/
packer-rhel-6.json
54 lines (54 loc) · 1.5 KB
/
packer-rhel-6.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
{
"provisioners": [{
"type": "shell",
"scripts": [
"scripts/rhn_reg.sh",
"scripts/base.sh",
"scripts/epel.sh",
"scripts/cloud.sh",
"scripts/rhn_unreg.sh",
"scripts/cleanup.sh",
"scripts/zerodisk.sh"
],
"override": {
"rhel-6-cloud-kvm": {
"execute_command": "sh '{{.Path}}'"
}
},
"only": ["rhel-6-cloud-kvm"]
}],
"builders": [{
"name": "rhel-6-cloud-kvm",
"type": "qemu",
"iso_checksum": "a51b90f3dd4585781293ea08adde60eeb9cfa94670943bd99e9c07f13a259539",
"iso_checksum_type": "sha256",
"iso_url": "http://yourrheldownloadurl.com/rhel-server-6.5-x86_64-dvd.iso",
"output_directory": "img_rhel_6_openstack",
"ssh_wait_timeout": "30s",
"shutdown_command": "shutdown -P now",
"disk_size": 5000,
"format": "qcow2",
"headless": true,
"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",
"vm_name": "rhel6_openstack",
"net_device": "virtio-net",
"disk_interface": "virtio",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks_cloud.cfg<enter><wait>"
]
}],
"post-processors": [{
"type": "vagrant",
"compression_level": 1,
"keep_input_artifact": true
}]
}