-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnimbusserver.json
83 lines (83 loc) · 2.62 KB
/
nimbusserver.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
{
"variables": {
"version": "",
"iso_name": "CentOS-7-x86_64-Minimal-1908.iso",
"iso_checksum": "9a2c47d97b9975452f7d582264e9fc16d108ed8252ac6816239a3b58cef5c53d",
"iso_local_dir": "C:/Users/{{ env `USERNAME` }}/Downloads"
},
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "install-ansible.sh"
},
{
"type": "ansible-local",
"playbook_dir": "ansible",
"playbook_file": "ansible/nimbusserver.yml",
"extra_arguments": [
"--extra-vars \"version={{user `version`}}\""
]
}
],
"builders": [
{
"type": "vmware-iso",
"name": "nimbusserver",
"output_directory": "nimbusserver-{{user `version`}}",
"vm_name": "nimbusserver-{{user `version`}}",
"guest_os_type": "centos-64",
"version": "12",
"disk_size": 307200,
"ssh_username": "root",
"ssh_password": "Password1",
"ssh_timeout" : "20m",
"iso_urls": [
"file://{{user `iso_local_dir`}}/{{user `iso_name`}}",
"http://mirrors.mit.edu/centos/7/isos/x86_64/{{user `iso_name`}}"
],
"iso_checksum_type": "sha256",
"iso_checksum": "{{user `iso_checksum`}}",
"shutdown_command": "shutdown -P now",
"vmx_data": {
"memsize": "10240",
"numvcpus": "4",
"cpuid.coresPerSocket": "4"
},
"vmx_data_post": {
"floppy0.present": "FALSE",
"ide0:0.present": "FALSE",
"ethernet0.pciSlotNumber": "33",
"ethernet0.present": "TRUE",
"ethernet0.wakeOnPcktRcv": "FALSE",
"ethernet0.connectionType": "hostonly",
"ethernet0.addressType": "generated",
"ethernet0.virtualDev": "e1000",
"ethernet1.pciSlotNumber": "34",
"ethernet1.present": "TRUE",
"ethernet1.wakeOnPcktRcv": "FALSE",
"ethernet1.connectionType": "nat",
"ethernet1.virtualDev": "e1000",
"ethernet1.addressType": "generated",
"ethernet2.pciSlotNumber": "35",
"ethernet2.present": "TRUE",
"ethernet2.wakeOnPcktRcv": "FALSE",
"ethernet2.startConnected": "FALSE",
"ethernet2.virtualDev": "e1000",
"ethernet2.addressType": "generated"
},
"floppy_files": [
"kickstart/centos7-preseed.cfg"
],
"boot_command": "<tab> inst.text inst.ks=hd:fd0:/centos7-preseed.cfg <enter><wait>"
}
],
"post-processors": [
{
"type": "compress",
"output": "nimbusserver-{{user `version`}}.tar.gz",
"compression_level": 9,
"keep_input_artifact": true
}
]
}