-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yml
More file actions
228 lines (228 loc) · 8.14 KB
/
config.yml
File metadata and controls
228 lines (228 loc) · 8.14 KB
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
j2_template_fields:
- boot_command
- cloud-init
- pass
- preseed
- scripts_after
- scripts_before
- scripts
- user
defaults:
boot_wait: '10s'
clipboardmode: disabled
draganddrop: disabled
cpus: 1
disk_size: 50000
domain: localhost
files_folder: files
headless: false
hostname: vm
build_memory: 1024
graphicscontroller: vmsvga
keep_x: false
packer_j2_name: child.json.j2
pass: '{$ args.distro $}'
scripts: []
scripts_after:
- '{$ args.distro $}/cleanup'
- minimize
scripts_before: []
ssh_handshake_attempts: 10
user: '{$ args.distro $}'
vagrant: false
vram: 16
vagrant:
user: vagrant
vagrant: true
pass: vagrant
distros:
ubuntu:
defaults:
memory: 512
guest_os_type: Ubuntu_64
'18.04':
boot_command:
- '<esc><wait>'
- '<esc><wait>'
- '<enter><wait>'
- '/install/vmlinuz<wait>'
- ' auto<wait>'
- ' console-setup/ask_detect=false<wait>'
- ' console-setup/layoutcode=us<wait>'
- ' console-setup/modelcode=pc105<wait>'
- ' debconf/frontend=noninteractive<wait>'
- ' debian-installer=en_US.UTF-8<wait>'
- ' fb=false<wait>'
- ' grub-installer/bootdev=/dev/sda<wait>'
- ' initrd=/install/initrd.gz<wait>'
- ' kbd-chooser/method=us<wait>'
- ' keyboard-configuration/layout=USA<wait>'
- ' keyboard-configuration/variant=USA<wait>'
- ' locale=en_US.UTF-8<wait>'
- ' netcfg/get_domain={$ domain $}<wait>'
- ' netcfg/get_hostname={$ hostname $}<wait>'
- ' noapic<wait>'
- ' preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<wait>'
- ' -- <wait>'
- <enter><wait>
iso_checksum: 8c5fc24894394035402f66f3824beb7234b757dd2b5531379cb310cedfdf0996
iso_url: 'http://cdimage.ubuntu.com/ubuntu/releases/18.04/release/ubuntu-18.04.6-server-amd64.iso'
preseed: |-
choose-mirror-bin mirror/http/proxy string
d-i base-installer/kernel/override-image string linux-server
d-i clock-setup/utc boolean true
d-i clock-setup/utc-auto boolean true
d-i finish-install/reboot_in_progress note
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i mirror/country string manual
d-i mirror/http/directory string /ubuntu
d-i mirror/http/hostname string archive.ubuntu.com
d-i mirror/http/proxy string
d-i partman-auto/choose_recipe select atomic
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman/confirm_write_new_label boolean true
d-i passwd/user-fullname string {$ user $}
d-i passwd/user-password password {$ pass $}
d-i passwd/user-password-again password {$ pass $}
d-i passwd/user-uid string 1000
d-i passwd/username string {$ user $}
d-i pkgsel/include string openssh-server build-essential dkms linux-headers-$(uname -r)
d-i pkgsel/install-language-support boolean false
d-i pkgsel/update-policy select none
d-i pkgsel/upgrade select full-upgrade
d-i time/zone string UTC
d-i user-setup/allow-password-weak boolean true
d-i user-setup/encrypt-home boolean false
popularity-contest popularity-contest/participate boolean false
tasksel tasksel/first multiselect standard, server
'20.04':
boot_command:
- '<f6on><wait10><f6off><enter><f6><esc>'
- 'autoinstall ds=nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/'
- '<enter>'
boot_wait: -1s
# The `#cloud-config` comment under `user-data` is required
cloud-init:
meta-data: null
user-data:
#cloud-config
autoinstall:
version: 1
identity:
hostname: '{$ hostname $}'
password: '{$ pass | crypt $}'
username: '{$ user $}'
ssh:
install-server: 'yes'
reporting:
hook:
type: webhook
endpoint: '{$ services.webhook_server_url $}'
level: DEBUG
iso_checksum: 443511f6bf12402c12503733059269a2e10dec602916c0a75263e5d990f6bb93
iso_url: 'https://releases.ubuntu.com/20.04/ubuntu-20.04.3-live-server-amd64.iso'
scripts_before:
- nocloudinit
- nowaitnetwork
# The SSH server is up (but not accessible for the configured user)
# before cloud-init finishes.
ssh_handshake_attempts: 1000
debian:
defaults:
memory: 396
guest_os_type: Debian_64
'10':
boot_command:
- '<esc><wait>'
- 'install<wait>'
- ' auto<wait>'
- ' console-keymaps-at/keymap=us<wait>'
- ' console-setup/ask_detect=false<wait>'
- ' debconf/frontend=noninteractive<wait>'
- ' debian-installer=en_US.UTF-8<wait>'
- ' fb=false<wait>'
- ' grub-installer/bootdev=/dev/sda<wait>'
- ' kbd-chooser/method=us<wait>'
- ' keyboard-configuration/xkb-keymap=us<wait>'
- ' locale=en_US.UTF-8<wait>'
- ' netcfg/get_domain={$ domain $}<wait>'
- ' netcfg/get_hostname={$ hostname $}<wait>'
- ' preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<wait>'
- ' -- <wait>'
- <enter><wait>
iso_checksum: 2af8f43d4a7ab852151a7f630ba596572213e17d3579400b5648eba4cc974ed0
iso_url: 'https://cdimage.debian.org/mirror/cdimage/archive/10.10.0/amd64/iso-cd/debian-10.10.0-amd64-netinst.iso'
preseed: |-
choose-mirror-bin mirror/http/proxy string
d-i apt-setup/cdrom/set-failed boolean false
d-i apt-setup/cdrom/set-first boolean false
d-i apt-setup/cdrom/set-next boolean false
d-i base-installer/kernel/override-image string linux-server
d-i clock-setup/utc boolean true
d-i clock-setup/utc-auto boolean true
d-i finish-install/reboot_in_progress note
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i mirror/country string manual
d-i mirror/http/directory string /debian
d-i mirror/http/hostname string httpredir.debian.org
d-i mirror/http/proxy string
d-i partman-auto/choose_recipe select atomic
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman/confirm_write_new_label boolean true
d-i passwd/root-login boolean false
d-i passwd/root-password password {$ pass $}
d-i passwd/root-password-again password {$ pass $}
d-i passwd/user-fullname string {$ user $}
d-i passwd/user-password password {$ pass $}
d-i passwd/user-password-again password {$ pass $}
d-i passwd/user-uid string 1000
d-i passwd/username string {$ user $}
d-i pkgsel/include string sudo curl openssh-server build-essential dkms linux-headers-$(uname -r)
d-i pkgsel/install-language-support boolean false
d-i pkgsel/update-policy select none
d-i pkgsel/upgrade select full-upgrade
d-i time/zone string UTC
d-i user-setup/allow-password-weak boolean true
d-i user-setup/encrypt-home boolean false
popularity-contest popularity-contest/participate boolean false
tasksel tasksel/first multiselect standard, ssh-server
variants:
root:
packer_j2_name: root.json.j2
scripts_after: []
scripts_before:
- '{$ args.distro $}/update'
- virtualbox
- common
- setupcon
- nomotd
base: {}
db:
scripts:
- postgres
desktop:
clipboardmode: bidirectional
draganddrop: bidirectional
graphicscontroller: vboxvga
keep_x: true
scripts:
- '{$ args.distro $}/{$ args.release $}/desktop'
mininet:
scripts:
- mininet
nossh:
scripts:
- nossh
www:
scripts:
- www