From 1f8dee55c6fc57d84cb6148e17f707078aff28b2 Mon Sep 17 00:00:00 2001 From: Cees-Jan Swart Date: Wed, 11 Dec 2024 16:27:25 +0100 Subject: [PATCH] Fix rspec error Provider redhat must have features 'delayed_startable' --- manifests/forwarder/service.pp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manifests/forwarder/service.pp b/manifests/forwarder/service.pp index 68a03205..86829c77 100644 --- a/manifests/forwarder/service.pp +++ b/manifests/forwarder/service.pp @@ -4,10 +4,15 @@ # sub-classes # class splunk::forwarder::service { + $provider = $facts['os']['family'] ? { + 'windows' => 'windows', + default => 'redhat', + } service { $splunk::forwarder::service_name: ensure => $splunk::forwarder::service_ensure, enable => $splunk::forwarder::service_enable, hasstatus => true, hasrestart => true, + provider => $provider, } }