2019-04-08 17:40:48 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: ft=sls
|
|
|
|
|
2019-10-18 15:04:26 +02:00
|
|
|
{%- 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 %}
|
2019-10-14 15:35:33 +02:00
|
|
|
|
2019-10-15 18:32:13 +02:00
|
|
|
verify_cron.service_available:
|
|
|
|
module_and_function: service.available
|
|
|
|
args:
|
2019-10-18 15:04:26 +02:00
|
|
|
- {{ service_name }}
|
2019-10-15 18:32:13 +02:00
|
|
|
assertion: assertTrue
|
|
|
|
|
2019-10-18 15:04:26 +02:00
|
|
|
verify_cron.service_enabled:
|
|
|
|
module_and_function: service.enabled
|
2019-10-14 15:35:33 +02:00
|
|
|
args:
|
2019-10-18 15:04:26 +02:00
|
|
|
- {{ service_name }}
|
2019-10-14 16:39:38 +02:00
|
|
|
assertion: assertTrue
|
2019-10-15 18:48:28 +02:00
|
|
|
|
|
|
|
verify_cron.service_running:
|
|
|
|
module_and_function: service.status
|
|
|
|
args:
|
2019-10-18 15:04:26 +02:00
|
|
|
- {{ service_name }}
|
|
|
|
assertion: assertTrue
|