-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
CentOS_7.json
93 lines (93 loc) · 2.57 KB
/
CentOS_7.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
91
92
93
{
"variables": {
"git_commit": "",
"url": "http://centos.mirroring.pulsant.co.uk/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1804.iso",
"checksum": "937bf0a7b0932817f84f7230f15ed88911bbbd85c0c958680792b7f8d8f9c1a9"
},
"provisioners": [
{
"type": "shell",
"execute_command": "sudo {{.Vars}} sh {{.Path}} {{user `git_commit`}}",
"scripts": [
"scripts/ansible.sh"
]
},
{
"type": "ansible-local",
"playbook_file": "./ansible/local.yml",
"role_paths": [
"./ansible/roles/system"
],
"inventory_file": "ansible/inventory"
},
{
"type": "shell",
"execute_command": "sudo {{.Vars}} sh {{.Path}}",
"scripts": [
"scripts/cleanup.sh",
"scripts/zerodisk.sh"
]
}
],
"post-processors": [
[ {
"type": "vsphere",
"cluster": "Cluster",
"datacenter": "{{user `vcenter_datacenter`}}",
"datastore": "ds_data",
"disk_mode": "thin",
"host": "{{user `vcenter_host`}}",
"password": "{{user `vcenter_password`}}",
"username": "{{user `vcenter_username`}}",
"vm_name": "Centos-7",
"vm_folder": "/",
"insecure": true,
"overwrite": true
},
{
"type": "vsphere-template",
"password": "{{user `vcenter_password`}}",
"username": "{{user `vcenter_username`}}",
"host": "{{user `vcenter_host`}}",
"datacenter": "{{user `vcenter_datacenter`}}",
"insecure": true
} ]
],
"builders": [
{
"type": "vmware-iso",
"format": "ovf",
"iso_url": "{{user `url`}}",
"iso_checksum": "{{user `checksum`}}",
"iso_checksum_type": "sha256",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "20m",
"disk_size": "20480",
"disk_type_id": "0",
"guest_os_type": "centos7-64",
"headless": false,
"shutdown_command": "sudo /sbin/halt -p",
"http_directory": "http",
"vmx_remove_ethernet_interfaces": true,
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
],
"vmx_data": {
"memsize": "1024",
"numvcpus": "1",
"ethernet0.present": true,
"ethernet0.startConnected": true,
"ethernet0.connectionType": "custom",
"ethernet0.vnet": "vmnet8",
"ethernet1.present": true,
"ethernet1.startConnected": true,
"ethernet1.connectionType": "custom",
"ethernet1.vnet": "vmnet1"
},
"vmx_data_post": {
"floppy0.present": false
}
}
]
}