-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.json
177 lines (177 loc) · 7.13 KB
/
template.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
{
"builders": [
{
"boot_command": "{{ user `boot_command` }}",
"boot_wait": "{{ user `boot_wait` }}",
"cpus": "{{ user `cpus` }}",
"disk_size": "{{ user `disk_size` }}",
"guest_os_type": "fedora-core",
"http_directory": "{{ user `http_directory` }}",
"iso_checksum": "file:{{ user `iso_checksum_url` }}",
"iso_url": "{{ user `iso_url` }}",
"memory": "{{ user `memory` }}",
"output_directory": "{{ user `build_directory` }}/{{ user `box_basename` }}-{{ user `iso_version` }}-Parallels",
"parallels_tools_flavor": "lin",
"prlctl_version_file": ".prlctl_version",
"shutdown_command": "{{ user `shutdown_command` }}",
"ssh_password": "{{ user `ssh_password` }}",
"ssh_port": "{{ user `ssh_port` }}",
"ssh_timeout": "{{ user `ssh_timeout` }}",
"ssh_username": "{{ user `ssh_username` }}",
"type": "parallels-iso",
"vm_name": "{{ user `vm_name` }}"
},
{
"accelerator": "kvm",
"boot_command": "{{ user `boot_command` }}",
"boot_wait": "{{ user `boot_wait` }}",
"cpus": "{{ user `cpus` }}",
"disk_cache": "unsafe",
"disk_compression": true,
"disk_discard": "unmap",
"disk_interface": "virtio-scsi",
"disk_size": "{{ user `disk_size` }}",
"format": "qcow2",
"headless": "{{ user `headless` }}",
"http_directory": "{{ user `http_directory` }}",
"iso_checksum": "file:{{ user `iso_checksum_url` }}",
"iso_url": "{{ user `iso_url` }}",
"memory": "{{ user `memory` }}",
"net_device": "virtio-net",
"output_directory": "{{ user `build_directory` }}/{{ user `box_basename` }}-{{ user `iso_version` }}-KVM",
"qemuargs": [["-m", "2048M"]],
"shutdown_command": "{{ user `shutdown_command` }}",
"ssh_password": "{{ user `ssh_password` }}",
"ssh_port": "{{ user `ssh_port` }}",
"ssh_timeout": "{{ user `ssh_timeout` }}",
"ssh_username": "{{ user `ssh_username` }}",
"type": "qemu",
"vm_name": "{{ user `vm_name` }}"
},
{
"boot_command": "{{ user `boot_command` }}",
"boot_wait": "{{ user `boot_wait` }}",
"cpus": "{{ user `cpus` }}",
"disk_size": "{{ user `disk_size` }}",
"guest_additions_path": "VBoxGuestAdditions_{{ .Version }}.iso",
"guest_additions_url": "{{ user `guest_additions_url` }}",
"guest_os_type": "Fedora_64",
"hard_drive_interface": "sata",
"headless": "{{ user `headless` }}",
"http_directory": "{{ user `http_directory` }}",
"iso_checksum": "file:{{ user `iso_checksum_url` }}",
"iso_url": "{{ user `iso_url` }}",
"memory": "{{ user `memory` }}",
"output_directory": "{{ user `build_directory` }}/{{ user `box_basename` }}-{{ user `iso_version` }}-VirtualBox",
"shutdown_command": "{{ user `shutdown_command` }}",
"ssh_password": "{{ user `ssh_password` }}",
"ssh_port": "{{ user `ssh_port` }}",
"ssh_timeout": "{{ user `ssh_timeout` }}",
"ssh_username": "{{ user `ssh_username` }}",
"type": "virtualbox-iso",
"virtualbox_version_file": ".vbox_version",
"vm_name": "{{ user `vm_name` }}"
},
{
"boot_command": "{{ user `boot_command` }}",
"boot_wait": "{{ user `boot_wait` }}",
"cpus": "{{ user `cpus` }}",
"disk_size": "{{ user `disk_size` }}",
"guest_os_type": "fedora-64",
"headless": "{{ user `headless` }}",
"http_directory": "{{ user `http_directory` }}",
"iso_checksum": "file:{{ user `iso_checksum_url` }}",
"iso_url": "{{ user `iso_url` }}",
"memory": "{{ user `memory` }}",
"output_directory": "{{ user `build_directory` }}/{{ user `box_basename` }}-{{ user `iso_version` }}-VMWare",
"shutdown_command": "{{ user `shutdown_command` }}",
"ssh_password": "{{ user `ssh_password` }}",
"ssh_port": "{{ user `ssh_port` }}",
"ssh_timeout": "{{ user `ssh_timeout` }}",
"ssh_username": "{{ user `ssh_username` }}",
"tools_upload_flavor": "linux",
"type": "vmware-iso",
"version": "11",
"vm_name": "{{ user `vm_name` }}",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"ethernet0.pciSlotNumber": "32"
},
"vmx_remove_ethernet_interfaces": true
}
],
"post-processors": [
[
{
"compression_level": "{{ user `compression_level` }}",
"output": "{{ user `build_directory` }}/{{ user `box_basename` }}.{{ .Provider }}.box",
"type": "vagrant",
"vagrantfile_template": "{{ template_dir }}/Vagrantfile"
},
{
"access_token": "{{ user `vagrantup_token` }}",
"box_tag": "{{ user `vagrantup_user` }}/{{ user `box_basename` }}",
"type": "vagrant-cloud",
"version": "{{ user `iso_version` }}",
"version_description": "{{ user `version_description` }}"
}
]
],
"provisioners": [
{
"environment_vars": [
"HOME_DIR=/home/vagrant",
"HTTP_PROXY={{ user `http_proxy` }}",
"HTTPS_PROXY={{ user `https_proxy` }}",
"NO_PROXY={{ user `no_proxy` }}"
],
"execute_command": "echo 'vagrant' | {{ .Vars }} sudo -E -S bash '{{ .Path }}'",
"expect_disconnect": true,
"scripts": [
"scripts/fix-slow-dns.symlink.sh",
"scripts/build-tools.symlink.sh",
"scripts/install-supporting-packages.symlink.sh",
"scripts/sshd.symlink.sh",
"scripts/virtualbox.symlink.sh",
"scripts/vmware.symlink.sh",
"scripts/parallels.symlink.sh",
"scripts/vagrant.symlink.sh",
"scripts/real-tmp.symlink.sh",
"scripts/desktop.custom.sh",
"scripts/cleanup.symlink.sh"
],
"type": "shell"
}
],
"variables": {
"boot_command": "<up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{ user `kickstarter_path` }}<enter><wait>",
"boot_wait": "5s",
"box_basename": "Fedora-Desktop",
"build_directory": "build",
"compression_level": "9",
"cpus": "2",
"description": "Fedora Workstation 35",
"disk_size": "80000",
"guest_additions_url": "",
"headless": "false",
"http_directory": "http",
"http_proxy": "{{ env `HTTPS_PROXY` }}",
"https_proxy": "{{ env `HTTPS_PROXY` }}",
"iso_checksum_url": "https://mirror.arizona.edu/fedora/linux/releases/35/Server/x86_64/iso/Fedora-Server-35-1.2-x86_64-CHECKSUM",
"iso_url": "https://mirror.arizona.edu/fedora/linux/releases/35/Server/x86_64/iso/Fedora-Server-dvd-x86_64-35-1.2.iso",
"iso_version": "35.1.2",
"kickstarter_path": "kickstarter.cfg",
"latestos_tag": "fedora",
"memory": "2048",
"no_proxy": "{{ env `NO_PROXY` }}",
"shutdown_command": "echo '{{ user `ssh_password` }}' | sudo -S shutdown -P now",
"ssh_password": "vagrant",
"ssh_port": "22",
"ssh_timeout": "30m",
"ssh_username": "vagrant",
"vagrantup_token": "{{ env `VAGRANT_CLOUD_TOKEN` }}",
"vagrantup_user": "Megabyte",
"version_description": "A Fedora Workstation 35.1.2 box. Built from the Fedora Server 35.1.2 image. See https://github.com/megabyte-labs/packer-fedora-desktop for more details.",
"vm_name": "{{ user `box_basename` }}-{{ user `iso_version` }}"
}
}