diff options
author | Ryan Coleman <ryan@puppetlabs.com> | 2012-12-10 13:34:21 -0800 |
---|---|---|
committer | Ryan Coleman <ryan@puppetlabs.com> | 2012-12-10 13:34:21 -0800 |
commit | 149575ce1a7e975933f190ab56697c1e46016158 (patch) | |
tree | 1ff30b65d007d368221178a00022123b518257c0 /manifests | |
parent | ef34330e6fdd3dd430b809089b552fb4e12486ea (diff) | |
parent | 7c587c075edf0587dda63923353897b95a0535ec (diff) |
Merge pull request #33 from codingtony/master
Make service ntp started on boot -> service 'ntp' { enable=>$enable...
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 5 |
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, |