Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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