-
Notifications
You must be signed in to change notification settings - Fork 0
/
cluster-builder-control.json
90 lines (88 loc) · 2.46 KB
/
cluster-builder-control.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
{
"provisioners": [
{
"type": "file",
"source": "http/bg_bw.jpg",
"destination": "/tmp/bg.jpg"
},
{
"type": "shell",
"execute_command": "echo 'admin' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "bin/setup.sh"
},
{
"type": "file",
"source": "keys/authorized_keys",
"destination": "/tmp/authorized_keys"
},
{
"type": "file",
"source": "cluster-builder-setup.html",
"destination": "/home/admin/"
},
{
"type": "ansible-local",
"playbook_file": "ansible/centos.yml",
"playbook_dir": "ansible",
"extra_arguments": "-vvvvv"
},
{
"type": "shell",
"execute_command": "echo 'admin' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"inline": ["reboot"],
"expect_disconnect": true
},
{
"type": "shell",
"execute_command": "echo 'admin' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "bin/zerodisk.sh",
"expect_disconnect": true
}
],
"post-processors": [{
"type": "shell-local",
"inline": [
"ovftool --overwrite cluster-builder-control.vmx/cluster-builder-control.vmx output_ovas/cluster-builder-control.ova"
]
},
{
"type": "shell-local",
"inline": [
"rm -rf cluster-builder-control.vmwarevm"
]
}],
"builders": [
{
"type": "vmware-iso",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 256000,
"guest_os_type": "centos-64",
"headless": true,
"http_directory": "http",
"iso_urls": [
"iso/CentOS-7-x86_64-Minimal-1908.iso",
"http://mirror.csclub.uwaterloo.ca/centos/7.7.1908/isos/x86_64/CentOS-7-x86_64-Minimal-1908.iso"
],
"iso_checksum_type": "sha256",
"iso_checksum": "9a2c47d97b9975452f7d582264e9fc16d108ed8252ac6816239a3b58cef5c53d",
"ssh_username": "admin",
"ssh_password": "admin",
"ssh_port": 22,
"ssh_wait_timeout": "20000s",
"shutdown_command": "echo 'admin'|sudo -S /sbin/halt -h -p",
"output_directory": "cluster-builder-control.vmx",
"vm_name": "cluster-builder-control",
"vmx_template_path": "templates/cluster-builder-control-template.vmx",
"vmx_data": {
"memsize": "2048",
"numvcpus": "2"
},
"vmx_data_post": {
"ethernet0.connectionType": "bridged"
}
}
]
}