summaryrefslogtreecommitdiff
path: root/puppet/modules/ntp/manifests/service.pp
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/ntp/manifests/service.pp')
-rw-r--r--puppet/modules/ntp/manifests/service.pp18
1 files changed, 18 insertions, 0 deletions
diff --git a/puppet/modules/ntp/manifests/service.pp b/puppet/modules/ntp/manifests/service.pp
new file mode 100644
index 00000000..3f1ada0b
--- /dev/null
+++ b/puppet/modules/ntp/manifests/service.pp
@@ -0,0 +1,18 @@
+#
+class ntp::service inherits ntp {
+
+ if ! ($service_ensure in [ 'running', 'stopped' ]) {
+ fail('service_ensure parameter must be running or stopped')
+ }
+
+ if $service_manage == true {
+ service { 'ntp':
+ ensure => $service_ensure,
+ enable => $service_enable,
+ name => $service_name,
+ hasstatus => true,
+ hasrestart => true,
+ }
+ }
+
+}