mirror of
https://github.com/saltstack-formulas/cron-formula.git
synced 2026-10-24 03:30:06 +02:00
refactor(saltcheck): relocate .tst files according to 1:1 .sls files
* https://github.com/saltstack-formulas/cron-formula/pull/4#issuecomment-544140377
This commit is contained in:
3 files changed
No files matched your search
@@ -0,0 +1,27 @@
|
||||
# -*- 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' %}
|
||||
{%- 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 }}
|
||||
assertion: assertTrue
|
||||
|
||||
verify_cron.service_running:
|
||||
module_and_function: service.status
|
||||
args:
|
||||
- {{ service_name }}
|
||||
assertion: assertTrue
|
||||
Reference in new issue
Block a user