summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorWill Hopper <whopper@cat.pdx.edu>2012-05-13 16:26:48 -0700
committerWill Hopper <whopper@cat.pdx.edu>2012-05-13 21:06:58 -0700
commit2e0d20761709818a964e8ca1ff23d84d51206d8a (patch)
tree21dc946cb0951b1064852b90fa5672a76d9b36f9 /manifests
parent0b39d32f9b2fbfab83081db78600a27d3fa4a274 (diff)
(#14457) Add FreeBSD support for the NTP class
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp19
1 files changed, 18 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 1598623..8843d4b 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -9,6 +9,7 @@
# - Debian 6.0 Squeeze
# - CentOS 5.4
# - Amazon Linux 2011.09
+# - FreeBSD 9.0
#
# Parameters:
#
@@ -78,6 +79,21 @@ class ntp($servers="UNSET",
$servers_real = $servers
}
}
+ freebsd: {
+ $supported = true
+ $pkg_name = [".*/net/ntp"]
+ $svc_name = "ntpd"
+ $config = "/etc/ntp.conf"
+ $config_tpl = "ntp.conf.freebsd.erb"
+ if ($servers == "UNSET") {
+ $servers_real = [ "0.freebsd.pool.ntp.org iburst maxpoll 9",
+ "1.freebsd.pool.ntp.org iburst maxpoll 9",
+ "2.freebsd.pool.ntp.org iburst maxpoll 9",
+ "3.freebsd.pool.ntp.org iburst maxpoll 9", ]
+ } else {
+ $servers_real = $servers
+ }
+ }
default: {
$supported = false
notify { "${module_name}_unsupported":
@@ -88,7 +104,8 @@ class ntp($servers="UNSET",
if ($supported == true) {
- package { $pkg_name:
+ package { "ntp":
+ name => $pkg_name,
ensure => $package_ensure,
}