summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp5
1 files changed, 5 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index d23f4a3..29358bd 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
) {
@@ -119,6 +123,7 @@ class ntp($servers='UNSET',
service { 'ntp':
ensure => $ensure,
+ enable => $enable,
name => $svc_name,
hasstatus => true,
hasrestart => true,