This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
ubuntu-20.04-amd64.json
97 lines (97 loc) · 3.36 KB
/
ubuntu-20.04-amd64.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
{
"builders": [
{
"boot_command": [
"<wait>c<wait>",
"linux /install/vmlinuz",
" auto",
" netcfg/get_domain=osism.xyz",
" netcfg/get_hostname=install",
" console-setup/ask_detect=false",
" console-setup/layoutcode=us",
" console-setup/modelcode=pc105",
" debconf/frontend=noninteractive",
" debian-installer=en_US.UTF-8",
" kbd-chooser/method=us",
" keyboard-configuration/layout=USA",
" keyboard-configuration/variant=USA",
" locale=en_US.UTF-8",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{ user `preseed_path` }}",
" fb=false",
" noapic ---<enter><wait>",
"initrd /install/initrd.gz<enter><wait>",
"boot<enter>"
],
"boot_wait": "10s",
"cpus": "{{ user `cpus` }}",
"disk_size": "{{ user `disk_size` }}",
"headless": "{{ user `headless` }}",
"http_directory": "{{ user `http_directory` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_url": "{{ user `mirror` }}/{{ user `mirror_directory` }}/{{ user `iso_name` }}",
"memory": "{{ user `memory` }}",
"output_directory": "{{ user `build_directory` }}/",
"shutdown_command": "echo 'install' | sudo -S shutdown -P now",
"ssh_password": "install",
"ssh_port": 22,
"ssh_timeout": "10000s",
"ssh_username": "install",
"type": "qemu",
"qemu_binary": "qemu-system-x86_64",
"vm_name": "{{ user `template` }}-{{ user `build_timestamp` }}.qcow2",
"firmware": "/usr/share/OVMF/OVMF_CODE.fd"
}
],
"provisioners": [
{
"type": "file",
"source": "{{ template_dir }}/scripts/provision/",
"destination": "/home/install/"
},
{
"environment_vars": [
"HOME_DIR=/home/install",
"http_proxy={{ user `http_proxy` }}",
"https_proxy={{ user `https_proxy` }}",
"no_proxy={{ user `no_proxy` }}"
],
"execute_command": "echo 'install' | {{.Vars}} sudo -S -E sh -eux '{{.Path}}'",
"expect_disconnect": true,
"scripts": [
"{{ template_dir }}/scripts/ubuntu/update.sh",
"{{ template_dir }}/scripts/common/sshd.sh",
"{{ template_dir }}/scripts/ubuntu/sudoers.sh",
"{{ template_dir }}/scripts/ubuntu/provision.sh",
"{{ template_dir }}/scripts/ubuntu/cleanup.sh",
"{{ template_dir }}/scripts/common/minimize.sh"
],
"type": "shell"
}
],
"variables": {
"build_directory": "/dev/shm/build/",
"build_timestamp": "{{isotime `2006-01-02`}}",
"cpus": "2",
"disk_size": "153600",
"headless": "true",
"http_directory": "{{template_dir}}/http",
"http_proxy": "{{ env `http_proxy` }}",
"https_proxy": "{{ env `https_proxy` }}",
"iso_checksum": "f11bda2f2caed8f420802b59f382c25160b114ccc665dbac9c5046e7fceaced2",
"iso_name": "ubuntu-20.04.1-legacy-server-amd64.iso",
"memory": "2048",
"mirror": "http://cdimage.ubuntu.com",
"mirror_directory": "ubuntu-legacy-server/releases/20.04/release",
"name": "ubuntu-20.04",
"no_proxy": "{{ env `no_proxy` }}",
"preseed_path": "preseed.cfg",
"template": "ubuntu-20.04-amd64"
},
"post-processors": [
{
"type": "compress",
"output": "/dev/shm/build/ubuntu-20.04-amd64-{{ user `build_timestamp` }}.gz",
"keep_input_artifact": true
}
]
}