Skip to content

Instantly share code, notes, and snippets.

@initcron
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save initcron/98f8f405915c16cbe57e to your computer and use it in GitHub Desktop.

Select an option

Save initcron/98f8f405915c16cbe57e to your computer and use it in GitHub Desktop.
ntp.conf.erb, chapter: parameterized classes
driftfile /var/lib/ntp/ntp.drift
<% if @server -%>
server <%= @server %> prefer
<% end -%>
server 0.ubuntu.pool.ntp.org
server 1.ubuntu.pool.ntp.org
server 2.ubuntu.pool.ntp.org
server 3.ubuntu.pool.ntp.org
server ntp.ubuntu.com
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment