-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathcentos7-base.json
68 lines (60 loc) · 1.61 KB
/
centos7-base.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":
[
{
"type": "qemu",
"accelerator": "kvm",
"headless": true,
"qemuargs": [
[ "-m", "2048M" ],
[ "-smp", "cpus=1,maxcpus=16,cores=4" ]
],
"disk_interface": "virtio",
"disk_size": 100000,
"format": "qcow2",
"net_device": "virtio-net",
"iso_url": "http://centos.mirror.garr.it/centos/7.7.1908/isos/x86_64/CentOS-7-x86_64-Minimal-1908.iso",
"iso_checksum": "9a2c47d97b9975452f7d582264e9fc16d108ed8252ac6816239a3b58cef5c53d",
"iso_checksum_type": "sha256",
"vm_name": "centos7-base",
"output_directory": "centos7-base-img",
"http_directory": "docroot",
"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": "1200s",
"boot_wait": "40s",
"boot_command": [
"<up><wait><tab><wait> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/c7-kvm-ks.cfg<enter><wait>"
],
"shutdown_command": "shutdown -P now"
}
],
"provisioners":
[
{
"type": "shell-local",
"command": "tar zcf stardata-install.tar.gz stardata-install/"
},
{
"type": "file",
"source": "stardata-install.tar.gz",
"destination": "/root/stardata-install.tar.gz"
},
{
"type": "shell",
"pause_before": "5s",
"inline": [
"cd /root/",
"tar zxf stardata-install.tar.gz",
"cd stardata-install/",
"./install.sh",
"yum clean all"
]
}
]
}