]> WPIA git - infra.git/blob - packer/debian-9/http/preseed.cfg
add: packer template for debian-9 installation
[infra.git] / packer / debian-9 / http / preseed.cfg
1 d-i partman/early_command \
2        string debconf-set partman-auto/disk "$(list-devices disk | head -n1)"
3
4 #### Contents of the preconfiguration file (for stretch)
5 ### Localization
6 # Preseeding only locale sets language, country and locale.
7 d-i debian-installer/locale string en_US.UTF-8
8
9 # The values can also be preseeded individually for greater flexibility.
10 #d-i debian-installer/language string en
11 #d-i debian-installer/country string NL
12 #d-i debian-installer/locale string en_GB.UTF-8
13 # Optionally specify additional locales to be generated.
14 d-i localechooser/supported-locales multiselect en_US.UTF-8, de_DE.UTF-8
15
16 # Keyboard selection.
17 d-i keyboard-configuration/xkb-keymap select us
18 # d-i keyboard-configuration/toggle select No toggling
19
20 ### Network configuration
21 # Disable network configuration entirely. This is useful for cdrom
22 # installations on non-networked devices where the network questions,
23 # warning and long timeouts are a nuisance.
24 #d-i netcfg/enable boolean false
25
26 # netcfg will choose an interface that has link if possible. This makes it
27 # skip displaying a list if there is more than one interface.
28 d-i netcfg/choose_interface select auto
29
30 # To pick a particular interface instead:
31 #d-i netcfg/choose_interface select eth1
32
33 # To set a different link detection timeout (default is 3 seconds).
34 # Values are interpreted as seconds.
35 #d-i netcfg/link_wait_timeout string 10
36
37 # If you have a slow dhcp server and the installer times out waiting for
38 # it, this might be useful.
39 #d-i netcfg/dhcp_timeout string 60
40 #d-i netcfg/dhcpv6_timeout string 60
41
42 # If you prefer to configure the network manually, uncomment this line and
43 # the static network configuration below.
44 #d-i netcfg/disable_autoconfig boolean true
45
46 # If you want the preconfiguration file to work on systems both with and
47 # without a dhcp server, uncomment these lines and the static network
48 # configuration below.
49 #d-i netcfg/dhcp_failed note
50 #d-i netcfg/dhcp_options select Configure network manually
51
52 # Static network configuration.
53 #
54 # IPv4 example
55 #d-i netcfg/get_ipaddress string 192.168.1.42
56 #d-i netcfg/get_netmask string 255.255.255.0
57 #d-i netcfg/get_gateway string 192.168.1.1
58 #d-i netcfg/get_nameservers string 192.168.1.1
59 #d-i netcfg/confirm_static boolean true
60 #
61 # IPv6 example
62 #d-i netcfg/get_ipaddress string fc00::2
63 #d-i netcfg/get_netmask string ffff:ffff:ffff:ffff::
64 #d-i netcfg/get_gateway string fc00::1
65 #d-i netcfg/get_nameservers string fc00::1
66 #d-i netcfg/confirm_static boolean true
67
68 # Any hostname and domain names assigned from dhcp take precedence over
69 # values set here. However, setting the values still prevents the questions
70 # from being shown, even if values come from dhcp.
71 d-i netcfg/get_hostname string host01
72 d-i netcfg/get_domain string test
73
74 # If you want to force a hostname, regardless of what either the DHCP
75 # server returns or what the reverse DNS entry for the IP is, uncomment
76 # and adjust the following line.
77 #d-i netcfg/hostname string somehost
78
79 # Disable that annoying WEP key dialog.
80 d-i netcfg/wireless_wep string
81 # The wacky dhcp hostname that some ISPs use as a password of sorts.
82 #d-i netcfg/dhcp_hostname string radish
83
84 # If non-free firmware is needed for the network or other hardware, you can
85 # configure the installer to always try to load it, without prompting. Or
86 # change to false to disable asking.
87 #d-i hw-detect/load_firmware boolean true
88
89 ### Network console
90 # Use the following settings if you wish to make use of the network-console
91 # component for remote installation over SSH. This only makes sense if you
92 # intend to perform the remainder of the installation manually.
93 #d-i anna/choose_modules string network-console
94 #d-i network-console/authorized_keys_url string http://10.0.0.1/openssh-key
95 #d-i network-console/password password r00tme
96 #d-i network-console/password-again password r00tme
97
98 ### Mirror settings
99 # If you select ftp, the mirror/country string does not need to be set.
100 #d-i mirror/protocol string https
101 d-i mirror/country string manual
102 d-i mirror/http/hostname string deb.debian.org
103 d-i mirror/http/directory string /debian
104 d-i mirror/http/proxy string
105
106 # Suite to install.
107 #d-i mirror/suite string testing
108 # Suite to use for loading installer components (optional).
109 #d-i mirror/udeb/suite string testing
110
111 ### Account setup
112 # Skip creation of a root account (normal user account will be able to
113 # use sudo).
114 #d-i passwd/root-login boolean false
115 # Alternatively, to skip creation of a normal user account.
116 #d-i passwd/make-user boolean false
117
118 # Root password, either in clear text
119 d-i passwd/root-password password root
120 d-i passwd/root-password-again password root
121 # or encrypted using a crypt(3)  hash.
122 #d-i passwd/root-password-crypted password [crypt(3) hash]
123
124 # To create a normal user account.
125 d-i passwd/user-fullname string wpia
126 d-i passwd/username string wpia
127 # Normal user's password, either in clear text
128 d-i passwd/user-password password wpia
129 d-i passwd/user-password-again password wpia
130 # or encrypted using a crypt(3) hash.
131 #d-i passwd/user-password-crypted password [crypt(3) hash]
132 # Create the first user with the specified UID instead of the default.
133 #d-i passwd/user-uid string 1010
134
135 # The user account will be added to some standard initial groups. To
136 # override that, use this.
137 #d-i passwd/user-default-groups string audio cdrom video
138
139 ### Clock and time zone setup
140 # Controls whether or not the hardware clock is set to UTC.
141 d-i clock-setup/utc boolean true
142
143 # You may set this to any valid setting for $TZ; see the contents of
144 # /usr/share/zoneinfo/ for valid values.
145 d-i time/zone string Europe/Berlin
146
147 # Controls whether to use NTP to set the clock during the install
148 d-i clock-setup/ntp boolean true
149 # NTP server to use. The default is almost always fine here.
150 #d-i clock-setup/ntp-server string ntp.example.com
151
152 ### Partitioning
153 ## Partitioning example
154 # If the system has free space you can choose to only partition that space.
155 # This is only honoured if partman-auto/method (below) is not set.
156 #d-i partman-auto/init_automatically_partition select biggest_free
157
158 # Alternatively, you may specify a disk to partition. If the system has only
159 # one disk the installer will default to using that, but otherwise the device
160 # name must be given in traditional, non-devfs format (so e.g. /dev/sda
161 # and not e.g. /dev/discs/disc0/disc).
162 # For example, to use the first SCSI/SATA hard disk:
163 #d-i partman-auto/disk string /dev/sda
164 # In addition, you'll need to specify the method to use.
165 # The presently available methods are:
166 # - regular: use the usual partition types for your architecture
167 # - lvm:     use LVM to partition the disk
168 # - crypto:  use LVM within an encrypted partition
169 d-i partman-auto/method string regular
170
171 d-i partman-auto/choose_recipe select single-root-no-swap
172
173 # Or provide a recipe of your own...
174 # If you have a way to get a recipe file into the d-i environment, you can
175 # just point at it.
176 #d-i partman-auto/expert_recipe_file string /hd-media/recipe
177 d-i partman-auto/expert_recipe string                         \
178       single-root-no-swap ::                                  \
179               1000 50 -1 ext4                                 \
180                       filesystem{ ext4 }                      \
181                       method{ format } format{ }              \
182                       use_filesystem{ }                       \
183                       mountpoint{ / }                         \
184               .
185
186 # If not, you can put an entire recipe into the preconfiguration file in one
187 # (logical) line. This example creates a small /boot partition, suitable
188 # swap, and uses the rest of the space for the root partition:
189 #d-i partman-auto/expert_recipe string                         \
190 #      boot-root ::                                            \
191 #              40 50 100 ext3                                  \
192 #                      $primary{ } $bootable{ }                \
193 #                      method{ format } format{ }              \
194 #                      use_filesystem{ } filesystem{ ext3 }    \
195 #                      mountpoint{ /boot }                     \
196 #              .                                               \
197 #              500 10000 1000000000 ext3                       \
198 #                      method{ format } format{ }              \
199 #                      use_filesystem{ } filesystem{ ext3 }    \
200 #                      mountpoint{ / }                         \
201 #              .                                               \
202 #              64 512 300% linux-swap                          \
203 #                      method{ swap } format{ }                \
204 #              .
205
206
207 #d-i partman-auto/init_automatically_partition \
208 #  select Guided - use entire disk and set up LVM
209
210 d-i partman-partitioning/confirm_write_new_label boolean true
211 d-i partman/choose_partition select finish
212 d-i partman/confirm boolean true
213 d-i partman/confirm_nooverwrite boolean true
214
215 # No swap
216 d-i     partman-basicfilesystems/no_swap        boolean false
217
218
219 ## Controlling how partitions are mounted
220 # The default is to mount by UUID, but you can also choose "traditional" to
221 # use traditional device names, or "label" to try filesystem labels before
222 # falling back to UUIDs.
223 #d-i partman/mount_style select uuid
224 d-i partman/mount_style select traditional
225
226 ### Base system installation
227 # Configure APT to not install recommended packages by default. Use of this
228 # option can result in an incomplete system and should only be used by very
229 # experienced users.
230 #d-i base-installer/install-recommends boolean false
231 d-i base-installer/install-recommends boolean false
232
233 # The kernel image (meta) package to be installed; "none" can be used if no
234 # kernel is to be installed.
235 #d-i base-installer/kernel/image string linux-image-686
236
237 ### Apt setup
238 # You can choose to install non-free and contrib software.
239 #d-i apt-setup/non-free boolean true
240 #d-i apt-setup/contrib boolean true
241 # Uncomment this if you don't want to use a network mirror.
242 #d-i apt-setup/use_mirror boolean false
243 # Select which update services to use; define the mirrors to be used.
244 # Values shown below are the normal defaults.
245 #d-i apt-setup/services-select multiselect security, updates
246 #d-i apt-setup/security_host string security.debian.org
247
248 # Additional repositories, local[0-9] available
249 #d-i apt-setup/local0/repository string \
250 #       http://local.server/debian stable main
251 #d-i apt-setup/local0/comment string local server
252 # Enable deb-src lines
253 #d-i apt-setup/local0/source boolean true
254
255 # Don't ask for more CDROM
256 apt-cdrom-setup apt-setup/disable-cdrom-entries boolean true
257 apt-cdrom-setup apt-setup/cdrom/set-first       boolean false
258
259 # URL to the public key of the local repository; you must provide a key or
260 # apt will complain about the unauthenticated repository and so the
261 # sources.list line will be left commented out
262 #d-i apt-setup/local0/key string http://local.server/key
263
264 # By default the installer requires that repositories be authenticated
265 # using a known gpg key. This setting can be used to disable that
266 # authentication. Warning: Insecure, not recommended.
267 #d-i debian-installer/allow_unauthenticated boolean true
268
269 # Uncomment this to add multiarch configuration for i386
270 #d-i apt-setup/multiarch string i386
271
272
273 ### Package selection
274 #tasksel tasksel/first multiselect standard, web-server, kde-desktop
275 tasksel tasksel/first multiselect SSH server
276
277 # Individual additional packages to install
278 # We need at least these to continue the preseeding later on.
279 d-i pkgsel/include string openssh-server sudo
280
281 # Whether to upgrade packages after debootstrap.
282 # Allowed values: none, safe-upgrade, full-upgrade
283 #d-i pkgsel/upgrade select none
284 d-i pkgsel/upgrade select full-upgrade
285
286 # Some versions of the installer can report back on what software you have
287 # installed, and what software you use. The default is not to report back,
288 # but sending reports helps the project determine what software is most
289 # popular and include it on CDs.
290 #popularity-contest popularity-contest/participate boolean false
291 popularity-contest popularity-contest/participate boolean false
292
293 ### Boot loader installation
294 # Grub is the default boot loader (for x86). If you want lilo installed
295 # instead, uncomment this:
296 #d-i grub-installer/skip boolean true
297 # To also skip installing lilo, and install no bootloader, uncomment this
298 # too:
299 #d-i lilo-installer/skip boolean true
300
301
302 # This is fairly safe to set, it makes grub install automatically to the MBR
303 # if no other operating system is detected on the machine.
304 d-i grub-installer/only_debian boolean true
305
306 # This one makes grub-installer install to the MBR if it also finds some other
307 # OS, which is less safe as it might not be able to boot that other OS.
308 d-i grub-installer/with_other_os boolean true
309
310 # Due notably to potential USB sticks, the location of the MBR can not be
311 # determined safely in general, so this needs to be specified:
312 #d-i grub-installer/bootdev  string /dev/sda
313 # To install to the first device (assuming it is not a USB stick):
314 #d-i grub-installer/bootdev  string default
315 d-i grub-installer/bootdev  string default
316
317 # Alternatively, if you want to install to a location other than the mbr,
318 # uncomment and edit these lines:
319 #d-i grub-installer/only_debian boolean false
320 #d-i grub-installer/with_other_os boolean false
321 #d-i grub-installer/bootdev  string (hd0,1)
322 # To install grub to multiple disks:
323 #d-i grub-installer/bootdev  string (hd0,1) (hd1,1) (hd2,1)
324
325 # Optional password for grub, either in clear text
326 #d-i grub-installer/password password r00tme
327 #d-i grub-installer/password-again password r00tme
328 # or encrypted using an MD5 hash, see grub-md5-crypt(8).
329 #d-i grub-installer/password-crypted password [MD5 hash]
330
331 # Use the following option to add additional boot parameters for the
332 # installed system (if supported by the bootloader installer).
333 # Note: options passed to the installer will be added automatically.
334 #d-i debian-installer/add-kernel-opts string nousb
335
336 ### Finishing up the installation
337 # During installations from serial console, the regular virtual consoles
338 # (VT1-VT6) are normally disabled in /etc/inittab. Uncomment the next
339 # line to prevent this.
340 #d-i finish-install/keep-consoles boolean true
341
342 # Avoid that last message about the install being complete.
343 d-i finish-install/reboot_in_progress note
344
345 # This will prevent the installer from ejecting the CD during the reboot,
346 # which is useful in some situations.
347 #d-i cdrom-detect/eject boolean false
348
349 # This is how to make the installer shutdown when finished, but not
350 # reboot into the installed system.
351 #d-i debian-installer/exit/halt boolean true
352 # This will power off the machine instead of just halting it.
353 #d-i debian-installer/exit/poweroff boolean true
354
355 ### Preseeding other packages
356 # Depending on what software you choose to install, or if things go wrong
357 # during the installation process, it's possible that other questions may
358 # be asked. You can preseed those too, of course. To get a list of every
359 # possible question that could be asked during an install, do an
360 # installation, and then run these commands:
361 #   debconf-get-selections --installer > file
362 #   debconf-get-selections >> file
363
364
365 #### Advanced options
366 ### Running custom commands during the installation
367 # d-i preseeding is inherently not secure. Nothing in the installer checks
368 # for attempts at buffer overflows or other exploits of the values of a
369 # preconfiguration file like this one. Only use preconfiguration files from
370 # trusted locations! To drive that home, and because it's generally useful,
371 # here's a way to run any shell command you'd like inside the installer,
372 # automatically.
373
374 # This first command is run as early as possible, just after
375 # preseeding is read.
376 #d-i preseed/early_command string anna-install some-udeb
377 # This command is run immediately before the partitioner starts. It may be
378 # useful to apply dynamic partitioner preseeding that depends on the state
379 # of the disks (which may not be visible when preseed/early_command runs).
380 #d-i partman/early_command \
381 #       string debconf-set partman-auto/disk "$(list-devices disk | head -n1)"
382 # This command is run just before the install finishes, but when there is
383 # still a usable /target directory. You can chroot to /target and use it
384 # directly, or use the apt-install and in-target commands to easily install
385 # packages and run commands in the target system.
386 #d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh
387
388 d-i preseed/late_command string echo 'wpia ALL = (root) NOPASSWD: ALL' > /target/etc/sudoers.d/wpia