summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Bussieres <t.bussieres@gmail.com>2012-11-19 13:46:43 -0500
committerTony Bussieres <tony.bussieres@ticksmith.com>2012-12-10 16:13:34 -0500
commit4b9a9e6f1288a4a98353d979aa92766ab27005d8 (patch)
treed212367502a3821c89cecd760b880bc0ca2c9b6f
parentd218ce04872aeec45cfd0398824acf20e728aa18 (diff)
added the enable parameter to the init class, so that one can configure ntp to start on boot.
-rw-r--r--manifests/init.pp15
1 files changed, 9 insertions, 6 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 74dcc5f..e8a4c34 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -34,6 +34,7 @@
# [Remember: No empty lines between comments and class definition]
class ntp($servers='UNSET',
$ensure='running',
+ $enable='true',
$autoupdate=false
) {
@@ -110,11 +111,13 @@ class ntp($servers='UNSET',
require => Package[$pkg_name],
}
- service { 'ntp':
- ensure => $ensure,
- name => $svc_name,
- hasstatus => true,
- hasrestart => true,
- subscribe => [ Package[$pkg_name], File[$config] ],
+ service { 'ntp':
+ ensure => $ensure,
+ enable => $enable,
+ name => $svc_name,
+ hasstatus => true,
+ hasrestart => true,
+ subscribe => [ Package[$pkg_name], File[$config] ],
+ }
}
}