-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdebian-toolbox.json
109 lines (108 loc) · 3.39 KB
/
debian-toolbox.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"builders": [
{
"boot_command": [
"<esc><wait>",
"install <wait>",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>",
"debian-installer=en_US <wait>",
"auto <wait>",
"net.ifnames=0 <wait>",
"biosdevname=0 <wait>",
"locale=en_US <wait>",
"kbd-chooser/method=us <wait>",
"keyboard-configuration/xkb-keymap=us <wait>",
"netcfg/choose_interface=eth0 <wait>",
"netcfg/get_hostname={{ user `hostname` }} <wait>",
"netcfg/get_domain=vmware.lab <wait>",
"fb=false <wait>",
"debconf/frontend=noninteractive <wait>",
"console-setup/ask_detect=false <wait>",
"console-keymaps-at/keymap=us <wait>",
"<enter><wait>"
],
"boot_wait": "10s",
"disk_type_id": "zeroedthick",
"format": "ovf",
"headless": false,
"http_directory": "http",
"iso_checksum": "{{ user `iso_checksum_type` }}:{{ user `iso_checksum` }}",
"iso_url": "{{ user `iso_url` }}",
"name": "{{ user `vm_name` }}",
"ovftool_options": "--noImageFiles",
"remote_datastore": "{{ user `builder_host_datastore` }}",
"remote_host": "{{ user `builder_host` }}",
"remote_password": "{{ user `builder_host_password` }}",
"remote_type": "esx5",
"remote_username": "{{ user `builder_host_username` }}",
"shutdown_command": "/sbin/shutdown -Ph now",
"shutdown_timeout": "10s",
"skip_compaction": true,
"ssh_password": "{{ user `guest_password` }}",
"ssh_port": 22,
"ssh_timeout": "60m",
"ssh_username": "{{ user `guest_username` }}",
"type": "vmware-iso",
"version": 14,
"vm_name": "{{ user `vm_name` }}",
"vmdk_name": "{{ user `vm_name` }}-disk0",
"vmx_data": {
"ethernet0.addressType": "generated",
"ethernet0.networkName": "{{ user `builder_host_portgroup` }}",
"ethernet0.present": "TRUE",
"ethernet0.startConnected": "TRUE",
"ethernet0.virtualDev": "vmxnet3",
"ethernet0.wakeOnPcktRcv": "FALSE",
"memsize": "{{ user `ramsize` }}",
"numvcpus": "{{ user `numvcpus` }}"
},
"vnc_disable_password": true
}
],
"post-processors": [
{
"environment_vars": [
"APPLIANCE_NAME={{ user `vm_name` }}",
"APPLIANCE_VERSION={{ user `version` }}",
"APPLIANCE_OVA={{ user `vm_name` }}_{{user `version`}}"
],
"inline": [
"cd postprocess-ova-properties",
"./add_ovf_properties.sh"
],
"type": "shell-local"
}
],
"provisioners": [
{
"destination": "/root/.bash_profile",
"source": "files/bash_profile.sh",
"type": "file"
},
{
"destination": "/root/.bash_prompt",
"source": "files/bash_prompt.sh",
"type": "file"
},
{
"destination": "/sbin/debian-init.py",
"source": "files/debian-init.py",
"type": "file"
},
{
"type": "shell",
"environment_vars": ["DEBIAN_FRONTEND=noninteractive"],
"scripts": [
"scripts/debian-update.sh",
"scripts/debian-system.sh",
"scripts/debian-storage.sh",
"scripts/debian-network.sh",
"scripts/debian-docker.sh",
"scripts/debian-hashicorp.sh",
"scripts/debian-vmware.sh",
"scripts/debian-settings.sh",
"scripts/debian-cleanup.sh"
]
}
]
}