0
0
mirror of https://github.com/saltstack-formulas/cron-formula.git synced 2024-11-28 07:47:50 +01:00
cron-formula/cron/saltcheck-tests/service/running.tst

28 lines
629 B
Scilab
Raw Normal View History

2019-04-08 17:40:48 +02:00
# -*- coding: utf-8 -*-
# vim: ft=sls
{%- set service_name = 'crond' %}
{%- if grains.os_family in ['Debian', 'Suse'] %}
{%- set service_name = 'cron' %}
{%- elif grains.os_family in ['Arch'] %}
{%- set service_name = 'cronie' %}
2019-04-08 17:40:48 +02:00
{%- endif %}
verify_cron.service_available:
module_and_function: service.available
args:
- {{ service_name }}
assertion: assertTrue
verify_cron.service_enabled:
module_and_function: service.enabled
args:
- {{ service_name }}
2019-10-14 16:39:38 +02:00
assertion: assertTrue
verify_cron.service_running:
module_and_function: service.status
args:
- {{ service_name }}
assertion: assertTrue