diff --git a/README.md b/README.md index 157e63f..b746c1d 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Variables: * debianunattended_additional_packages: git nano wget bash-completion curl socat multitail python-apt-common software-properties-common * debianunattended_proxystring: http://hostname:port * debianunattended_mirror: ftp.de.debian.org +* debianunattended_ntpserver: ntp.domain.tld #backup-ip-address for environment without dhcp * debianunattended_staticip_ipaddress: 192.168.1.42 * debianunattended_staticip_netmask: 255.255.255.0 diff --git a/templates/preseed.cfg.j2 b/templates/preseed.cfg.j2 index 0f86b36..8015f7e 100644 --- a/templates/preseed.cfg.j2 +++ b/templates/preseed.cfg.j2 @@ -148,7 +148,11 @@ d-i time/zone string {{ debianunattended_time_zone | default('EU/Berlin') }} # Controls whether to use NTP to set the clock during the install d-i clock-setup/ntp boolean true # NTP server to use. The default is almost always fine here. +{% if debianunattended_ntpserver is defined %} +d-i clock-setup/ntp-server string {{ debianunattended_ntpserver }} +{% else %} #d-i clock-setup/ntp-server string ntp.example.com +{% endif %} ### Partitioning ## Partitioning example