Skip to content

Instantly share code, notes, and snippets.

@Raboo
Created June 28, 2012 14:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Raboo/3011629 to your computer and use it in GitHub Desktop.
Save Raboo/3011629 to your computer and use it in GitHub Desktop.
augeas ntp puppet
augeas { "ntp.conf":
context => "/files/etc/ntp.conf",
changes => [
"rm server[.]",
"set server timehost.tconet.net",
"clear server[. = 'timehost.tconet.net']/iburst",
"set server[. = 'timehost.tconet.net']/maxpoll 9",
"clear server[. = 'timehost.tconet.net']/prefer",
],
require => Package["ntp"],
} # augeas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment