Skip to content

Instantly share code, notes, and snippets.

@dustinchilson
Last active October 1, 2018 19:38
Show Gist options
  • Save dustinchilson/f9d30ec5456f859b7688d0f498eb366a to your computer and use it in GitHub Desktop.
Save dustinchilson/f9d30ec5456f859b7688d0f498eb366a to your computer and use it in GitHub Desktop.
#cloud-config
write_files:
- container: ntp
path: /etc/ntp.conf
permissions: "0644"
owner: root
content: |
server 0.pool.ntp.org iburst
server 1.pool.ntp.org iburst
server 2.pool.ntp.org iburst
server 3.pool.ntp.org iburst
# Allow only time queries, at a limited rate, sending KoD when in excess.
# Allow all local queries (IPv4, IPv6)
restrict default nomodify nopeer noquery limited kod
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