Skip to content

Instantly share code, notes, and snippets.

@kerin
Created January 22, 2013 13:26
Show Gist options
  • Save kerin/4594649 to your computer and use it in GitHub Desktop.
Save kerin/4594649 to your computer and use it in GitHub Desktop.
# == Class: ntp
#
# A basic module to manage NTP
#
# === Parameters
# [*version*]
# The package version to install
#
# [*ntpservers*]
# An array of NTP servers to use on this node
#
# [*enable*]
# Should the service be enabled during boot time?
#
# [*start*]
# Should the service be started by Puppet
class ntp(
$version = "present",
$ntpservers = ["1.pool.ntp.org", "2.pool.ntp.org"],
$enable = true,
$start = true
) {
class{'ntp::install': } ->
class{'ntp::config': } ~>
class{'ntp::service': } ->
Class["ntp"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment