mirror of
https://github.com/saltstack-formulas/template-formula.git
synced 2025-04-17 10:10:28 +00:00
15 lines
350 B
Ruby
15 lines
350 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Overide by OS
|
|
service_name = 'systemd-udevd'
|
|
service_name = 'crond' if (os[:name] == 'centos') && os[:release].start_with?('6')
|
|
|
|
control 'TEMPLATE service' do
|
|
impact 0.5
|
|
title 'should be running and enabled'
|
|
|
|
describe service(service_name) do
|
|
it { should be_enabled }
|
|
it { should be_running }
|
|
end
|
|
end
|