summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorHunter Haugen <h.haugen@gmail.com>2012-11-28 11:40:01 -0500
committerTony Bussieres <tony.bussieres@ticksmith.com>2012-12-10 16:14:03 -0500
commitbd2a757b852a339fb22492598f39841825e6b12c (patch)
tree32ea9192b8392ab86f05b411191ee9fc26050b96 /manifests
parent4b9a9e6f1288a4a98353d979aa92766ab27005d8 (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 e8a4c34..6f4cc8b 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.
@@ -35,6 +41,7 @@
class ntp($servers='UNSET',
$ensure='running',
$enable='true',
+ $restrict=true,
$autoupdate=false
) {