summaryrefslogtreecommitdiff
path: root/manifests/service.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/service.pp')
-rw-r--r--manifests/service.pp23
1 files changed, 23 insertions, 0 deletions
diff --git a/manifests/service.pp b/manifests/service.pp
new file mode 100644
index 00000000..36fb2d16
--- /dev/null
+++ b/manifests/service.pp
@@ -0,0 +1,23 @@
+class check_mk::service {
+
+ if ! defined(Service[$check_mk::http_service_name]) {
+ service { $check_mk::http_service_name:
+ ensure => 'running',
+ enable => true,
+ }
+ }
+ # FIXME: this should get and check $use_ssh before doing this
+ if ! defined(Service[xinetd]) {
+ service { 'xinetd':
+ ensure => 'running',
+ name => $check_mk::xinitd_service_name,
+ hasstatus => false,
+ enable => true,
+ }
+ }
+ service { 'omd':
+ ensure => 'running',
+ name => $check_mk::omd_service_name,
+ enable => true,
+ }
+}