set custom ntp server for debian unattended

This commit is contained in:
Alexander Gabriel 2022-08-15 15:19:49 +02:00
parent a1c9783258
commit f7a6479c51
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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