summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorHunter Haugen <h.haugen@gmail.com>2012-11-28 11:40:01 -0500
committerHunter Haugen <h.haugen@gmail.com>2012-11-28 11:43:47 -0500
commit13835e152e9bc93d2d48a4809aa39dbf8f492946 (patch)
treeff8fc07d31426ca0c49883d35c41fe4d37282dee /manifests
parente6e8d9e9c967ef0714dcf629f071b311da524c95 (diff)
Add restrict parameter
NTP servers should not restrict themselves to 127.0.0.1, and this commit adds a `restrict` parameter to enable/disable this configuration block in the relevent templates.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index b404071..d1d9fce 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -18,6 +18,12 @@
# '2.debian.pool.ntp.org iburst',
# '3.debian.pool.ntp.org iburst', ]
#
+# $restrict = true
+# Whether to restrict ntp daemons from allowing others to use as a server.
+#
+# $autoupdate = false
+# Whether to update the ntp package automatically or not.
+#
# Actions:
#
# Installs, configures, and manages the ntp service.
@@ -34,6 +40,7 @@
# [Remember: No empty lines between comments and class definition]
class ntp($servers='UNSET',
$ensure='running',
+ $restrict=true,
$autoupdate=false
) {