set custom ntp server for debian unattended
This commit is contained in:
parent
a1c9783258
commit
f7a6479c51
@ -15,6 +15,7 @@ Variables:
|
|||||||
* debianunattended_additional_packages: git nano wget bash-completion curl socat multitail python-apt-common software-properties-common
|
* debianunattended_additional_packages: git nano wget bash-completion curl socat multitail python-apt-common software-properties-common
|
||||||
* debianunattended_proxystring: http://hostname:port
|
* debianunattended_proxystring: http://hostname:port
|
||||||
* debianunattended_mirror: ftp.de.debian.org
|
* debianunattended_mirror: ftp.de.debian.org
|
||||||
|
* debianunattended_ntpserver: ntp.domain.tld
|
||||||
#backup-ip-address for environment without dhcp
|
#backup-ip-address for environment without dhcp
|
||||||
* debianunattended_staticip_ipaddress: 192.168.1.42
|
* debianunattended_staticip_ipaddress: 192.168.1.42
|
||||||
* debianunattended_staticip_netmask: 255.255.255.0
|
* debianunattended_staticip_netmask: 255.255.255.0
|
||||||
|
@ -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
|
# Controls whether to use NTP to set the clock during the install
|
||||||
d-i clock-setup/ntp boolean true
|
d-i clock-setup/ntp boolean true
|
||||||
# NTP server to use. The default is almost always fine here.
|
# 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
|
#d-i clock-setup/ntp-server string ntp.example.com
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
### Partitioning
|
### Partitioning
|
||||||
## Partitioning example
|
## Partitioning example
|
||||||
|
Loading…
Reference in New Issue
Block a user