Skip to content

Commit

Permalink
Fix rspec error Provider redhat must have features 'delayed_startable'
Browse files Browse the repository at this point in the history
  • Loading branch information
cjswart committed Dec 11, 2024
1 parent c830a68 commit 1f8dee5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/forwarder/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

0 comments on commit 1f8dee5

Please sign in to comment.