forked from TelekomLabs/packer-rhel7
-
Notifications
You must be signed in to change notification settings - Fork 2
/
centos7.json
73 lines (71 loc) · 1.63 KB
/
centos7.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
{
"provisioners": [{
"type": "file",
"source": "scripts/usr/sbin/",
"destination": "/usr/sbin",
"only": [
"centos-7-qemu-qcow2"
]
},
{
"type": "shell",
"inline": ["chmod +x /usr/sbin/jnr*"],
"only": [
"centos-7-qemu-qcow2"
]
},
{
"type": "shell",
"scripts": [
"scripts/base.sh",
"scripts/epel.sh",
"scripts/grub.sh",
"scripts/ag.sh",
"scripts/cleanup.sh",
"scripts/security.sh",
"scripts/java-setup.sh",
"scripts/docker.sh",
"scripts/webapps.sh",
"scripts/zerodisk.sh"
],
"override": {
"centos-7-qemu-qcow2": {
"execute_command": "sh '{{.Path}}'"
}
},
"only": [
"centos-7-qemu-qcow2"
]
}
],
"builders": [{
"name": "centos-7-qemu-qcow2",
"vm_name": "centos-7-qemu.qcow2",
"type": "qemu",
"iso_checksum": "27bd866242ee058b7a5754e83d8ee8403e216b93d130d800852a96f41c34d86a",
"iso_checksum_type": "sha256",
"iso_url": "https://ftp.heanet.ie/mirrors/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1611.iso",
"output_directory": "target",
"ssh_wait_timeout": "90m",
"shutdown_command": "shutdown -P now",
"disk_size": 25140,
"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,
"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": [
]
}