summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorTony Bussieres <tony.bussieres@ticksmith.com>2012-12-10 15:06:46 -0500
committerTony Bussieres <tony.bussieres@ticksmith.com>2012-12-10 16:20:04 -0500
commit78fdcf83c84fb35d689cfcf8ab560bad88ea74d0 (patch)
tree1ff30b65d007d368221178a00022123b518257c0 /manifests
parentca1e5a76698970264c223d743a08d9765866bb74 (diff)
Fix service indentation, added parameter documentation
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp20
1 files changed, 11 insertions, 9 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 6f4cc8b..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,7 +43,7 @@
# [Remember: No empty lines between comments and class definition]
class ntp($servers='UNSET',
$ensure='running',
- $enable='true',
+ $enable=true,
$restrict=true,
$autoupdate=false
) {
@@ -118,13 +121,12 @@ class ntp($servers='UNSET',
require => Package[$pkg_name],
}
- service { 'ntp':
- ensure => $ensure,
- enable => $enable,
- 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] ],
}
}