-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathubuntu-18.json
88 lines (78 loc) · 3.03 KB
/
ubuntu-18.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
{
"builders": [
{
"type": "vsphere-iso",
"vcenter_server": "{{user `vcenter_server`}}",
"username": "{{user `username`}}",
"password": "{{user `password`}}",
"insecure_connection": "true",
"vm_name": "{{ user `template_name` }}" ,
"datastore": "{{user `datastore`}}",
"folder": "{{user `folder`}}",
"host": "{{user `host`}}",
"convert_to_template": "true",
"cluster": "{{user `cluster`}}",
"network": "{{user `network`}}",
"boot_order": "disk,cdrom",
"guest_os_type": "ubuntu64Guest",
"ssh_username": "{{user `ssh_username`}}",
"ssh_password": "{{user `ssh_password`}}",
"CPUs": 2,
"RAM": 4096,
"RAM_reserve_all": true,
"disk_controller_type": "pvscsi",
"disk_size": 61440,
"disk_thin_provisioned": true,
"network_card": "vmxnet3",
"iso_urls": "http://cdimage.ubuntu.com/releases/18.04/release/ubuntu-18.04.3-server-amd64.iso",
"iso_checksum": "7d8e0055d663bffa27c1718685085626cb59346e7626ba3d3f476322271f573e",
"iso_checksum_type": "sha256",
"floppy_files": [
"./preseed.cfg"
],
"boot_command": [
"<enter><wait><f6><wait><esc><wait>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs>",
"/install/vmlinuz",
" initrd=/install/initrd.gz",
" priority=critical",
" locale=en_US",
" file=/media/preseed.cfg",
"<enter>"
]
}
],
"provisioners": [{
"environment_vars": [
"DEBIAN_FRONTEND=noninteractive",
"UBUNTU_SSH_KEY={{ user `ubuntu_ssh_key` }}",
"VCENTER_USER={{ user `username` }}",
"VCENTER_PASSWORD={{ user `password` }}",
"VCENTER_DATASTORE={{ user `datastore` }}",
"VCENTER_IP={{ user `vcenter_server` }}",
"VCENTER_CLUSTER={{ user `cluster` }}",
"VCENTER_FOLDER={{ user `folder` }}",
"VCENTER_NETWORK={{ user `network` }}",
"VCENTER_DATACENTER={{ user `datacenter` }}"
],
"execute_command": "echo 'ubuntu' | sudo -S env {{ .Vars }} {{ .Path }}",
"expect_disconnect": true,
"scripts": [
"scripts/install-ssh-key.sh",
"scripts/setup-for-vsphere-kubeadm.sh",
"scripts/install-docker-for-kubeadm.sh",
"scripts/install-kubeadm.sh",
"scripts/configure-kubeadm.sh",
"scripts/cleanup.sh"
],
"type": "shell"
}]
}