aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/cobbler/snippets/ntp.xml
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/adapters/cobbler/snippets/ntp.xml')
-rw-r--r--deploy/adapters/cobbler/snippets/ntp.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/deploy/adapters/cobbler/snippets/ntp.xml b/deploy/adapters/cobbler/snippets/ntp.xml
new file mode 100644
index 00000000..20832b4b
--- /dev/null
+++ b/deploy/adapters/cobbler/snippets/ntp.xml
@@ -0,0 +1,16 @@
+#if $getVar('ntp_server', '') == ""
+ #set $ntp_server = '0.pool.ntp.org'
+#end if
+ <ntp-client>
+ <configure_dhcp config:type="boolean">false</configure_dhcp>
+ <peers config:type="list">
+ <peer>
+ <address>$ntp_server</address>
+ <initial_sync config:type="boolean">true</initial_sync>
+ <options></options>
+ <type>server</type>
+ </peer>
+ </peers>
+ <start_at_boot config:type="boolean">true</start_at_boot>
+ <start_in_chroot config:type="boolean">true</start_in_chroot>
+ </ntp-client>