summaryrefslogtreecommitdiff
path: root/puppet/modules/rsyslog/manifests/service.pp
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/rsyslog/manifests/service.pp')
-rw-r--r--puppet/modules/rsyslog/manifests/service.pp21
1 files changed, 21 insertions, 0 deletions
diff --git a/puppet/modules/rsyslog/manifests/service.pp b/puppet/modules/rsyslog/manifests/service.pp
new file mode 100644
index 00000000..4be19999
--- /dev/null
+++ b/puppet/modules/rsyslog/manifests/service.pp
@@ -0,0 +1,21 @@
+# == Class: rsyslog::service
+#
+# This class enforces running of the rsyslog service.
+#
+# === Parameters
+#
+# === Variables
+#
+# === Examples
+#
+# class { 'rsyslog::service': }
+#
+class rsyslog::service {
+ service { $rsyslog::service_name:
+ ensure => running,
+ enable => true,
+ hasstatus => $rsyslog::service_hasstatus,
+ hasrestart => $rsyslog::service_hasrestart,
+ require => Class['rsyslog::config'],
+ }
+}