You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

171 line
6.3KB

  1. #### Contents of the preconfiguration file (for jessie)
  2. ### Localization
  3. # Locale
  4. d-i debian-installer/language string de
  5. d-i debian-installer/country string DE
  6. d-i debian-installer/locale string de_DE.UTF-8
  7. # Keyboard selection.
  8. d-i keyboard-configuration/xkb-keymap select de
  9. d-i keyboard-configuration/toggle select No toggling
  10. {#
  11. ### Network configuration
  12. {% if (networks is defined) and (netname is defined) and (networks[netname] is defined) %}
  13. d-i netcfg/choose_interface select {{ networks[netname].mac | default("auto") }}
  14. {% if (networks[netname].type is defined) and (networks[netname].type == 'static') %}
  15. d-i netcfg/disable_autoconfig boolean true
  16. d-i netcfg/get_ipaddress string {{ networks[netname].ip | ipaddr('address') }}
  17. d-i netcfg/get_netmask string {{ networks[netname].ip | ipaddr('netmask') }}
  18. d-i netcfg/get_gateway string {{ networks[netname].gateway }}
  19. d-i netcfg/get_nameservers string {{ networks[netname].nameservers | join(" ") }}
  20. d-i netcfg/confirm_static boolean true
  21. {% endif %}
  22. {% endif %}
  23. #}
  24. ### Network console
  25. {% if network_console is defined %}
  26. d-i anna/choose_modules string network-console
  27. d-i network-console/password-disabled boolean true
  28. {% endif %}
  29. ### Hostname
  30. d-i netcfg/hostname string {{inventory_hostname}}
  31. ### Mirror settings
  32. d-i mirror/country string manual
  33. d-i mirror/http/hostname string debian.thengo.net
  34. d-i mirror/http/directory string /debian
  35. d-i mirror/http/proxy string
  36. ### Account setup
  37. # Skip creation of a root account (normal user account will be able to
  38. # use sudo).
  39. d-i passwd/root-login boolean true
  40. # Alternatively, to skip creation of a normal user account.
  41. d-i passwd/make-user boolean true
  42. # Root password
  43. d-i passwd/root-password-crypted password {{ passwords_hashed["root"] }}
  44. # local-admin
  45. d-i passwd/user-fullname string Administrator
  46. d-i passwd/username string local-admin
  47. d-i passwd/user-password-crypted password {{ passwords_hashed["local-admin"] }}
  48. d-i passwd/user-uid string 999
  49. ### Clock and time zone setup
  50. d-i clock-setup/utc boolean true
  51. d-i time/zone string Etc/UTC
  52. d-i clock-setup/ntp boolean true
  53. d-i clock-setup/ntp-server string ntp1.thengo.net ntp2.thengo.net ntp3.thengo.net
  54. ### Partitioning
  55. {% if partitioning is defined %}
  56. ## Partitioning example
  57. # If the system has free space you can choose to only partition that space.
  58. # This is only honoured if partman-auto/method (below) is not set.
  59. #d-i partman-auto/init_automatically_partition select biggest_free
  60. # You can choose one of the three predefined partitioning recipes:
  61. # - atomic: all files in one partition
  62. # - home: separate /home partition
  63. # - multi: separate /home, /var, and /tmp partitions
  64. d-i partman-auto/choose_recipe select atomic
  65. ## Controlling how partitions are mounted
  66. # The default is to mount by UUID, but you can also choose "traditional" to
  67. # use traditional device names, or "label" to try filesystem labels before
  68. # falling back to UUIDs.
  69. d-i partman/mount_style select uuid
  70. d-i partman/default_filesystem string btrfs
  71. #d-i partman-auto/disk string /dev/sda
  72. d-i partman-auto/method string regular
  73. # partitioning
  74. d-i partman-basicfilesystems/choose_label string gpt
  75. d-i partman-basicfilesystems/default_label string gpt
  76. d-i partman-partitioning/choose_label string gpt
  77. d-i partman-partitioning/default_label string gpt
  78. d-i partman/choose_label string gpt
  79. d-i partman/default_label string gpt
  80. d-i partman-partitioning/choose_label select gpt
  81. partman-base partman/default_filesystem string btrfs
  82. d-i partman-auto/choose_recipe atomic
  83. # This makes partman automatically partition without confirmation.
  84. d-i partman-md/confirm boolean true
  85. d-i partman-md/confirm_nooverwrite boolean true
  86. d-i partman/choose_partition select finish
  87. d-i partman/confirm boolean true
  88. d-i partman/confirm_nooverwrite boolean true
  89. # If one of the disks that are going to be automatically partitioned
  90. # contains an old LVM configuration, the user will normally receive a
  91. # warning. This can be preseeded away...
  92. d-i partman-lvm/device_remove_lvm boolean true
  93. # The same applies to pre-existing software RAID array:
  94. d-i partman-md/device_remove_md boolean true
  95. # And the same goes for the confirmation to write the lvm partitions.
  96. d-i partman-lvm/confirm boolean true
  97. d-i partman-lvm/confirm_nooverwrite boolean true
  98. # do not complain about missing swap partition
  99. #d-i partman-basicfilesystems/no_swap boolean false
  100. {% endif %}
  101. ### Apt setup
  102. # You can choose to install non-free and contrib software.
  103. d-i apt-setup/non-free boolean {{ nonfree_firmware }}
  104. d-i apt-setup/contrib boolean {{ nonfree_firmware }}
  105. d-i apt-setup/services-select multiselect security,updates
  106. d-i apt-setup/security_host string security.debian.org
  107. ### Package selection
  108. tasksel tasksel/first multiselect minimal
  109. # Individual additional packages to install
  110. d-i pkgsel/include string openssh-server python python-apt
  111. # Whether to upgrade packages after debootstrap.
  112. # Allowed values: none, safe-upgrade, full-upgrade
  113. d-i pkgsel/upgrade select full-upgrade
  114. # Some versions of the installer can report back on what software you have
  115. # installed, and what software you use. The default is not to report back,
  116. # but sending reports helps the project determine what software is most
  117. # popular and include it on CDs.
  118. popularity-contest popularity-contest/participate boolean false
  119. ### Boot loader installation
  120. {% if bootloader is defined %}
  121. # This is fairly safe to set, it makes grub install automatically to the MBR
  122. # if no other operating system is detected on the machine.
  123. d-i grub-installer/only_debian boolean true
  124. # This one makes grub-installer install to the MBR if it also finds some other
  125. # OS, which is less safe as it might not be able to boot that other OS.
  126. d-i grub-installer/with_other_os boolean true
  127. d-i grub-installer/bootdev string {{ bootdev | default("default") }}
  128. d-i grub-installer/password-crypted password {{ passwords_hashed["grub"] }}
  129. {% endif %}
  130. ### Finishing up the installation
  131. # Avoid that last message about the install being complete.
  132. d-i finish-install/reboot_in_progress note
  133. ### Running custom commands during the installation
  134. d-i preseed/run string run.sh
  135. d-i preseed/run/checksum string {{ run_sh.stat.md5 }}
  136. d-i preseed/late_command string mkdir -p /target/root/.ssh; cp /.ssh/authorized_keys /target/root/.ssh/authorized_keys; mkdir -p /target/home/local-admin/.ssh; cp /.ssh/authorized_keys /target/home/local-admin/.ssh/authorized_keys;