summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp5
1 files changed, 5 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 44e039b..9cf2f6e 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -24,6 +24,9 @@
# $autoupdate = false
# Whether to update the ntp package automatically or not.
#
+# $enable = true
+# Automatically start ntp deamon on boot.
+#
# Actions:
#
# Installs, configures, and manages the ntp service.
@@ -40,6 +43,7 @@
# [Remember: No empty lines between comments and class definition]
class ntp($servers='UNSET',
$ensure='running',
+ $enable=true,
$restrict=true,
$autoupdate=false
) {
@@ -137,6 +141,7 @@ class ntp($servers='UNSET',
service { 'ntp':
ensure => $ensure,
+ enable => $enable,
name => $svc_name,
hasstatus => true,
hasrestart => true,