mirror of
https://github.com/saltstack-formulas/cron-formula.git
synced 2024-12-01 02:31:08 +01:00
16 lines
413 B
Scilab
16 lines
413 B
Scilab
# -*- coding: utf-8 -*-
|
|
# vim: ft=sls
|
|
|
|
{%- from "cron/saltcheck-tests/map.jinja" import cron with context %}
|
|
|
|
{%- set service_function = 'disabled' %}
|
|
{%- if 'enabled' not in cron or ( 'enabled' in cron and cron.enabled ) %}
|
|
{%- set service_function = 'enabled' %}
|
|
{%- endif %}
|
|
|
|
verify_cron.service:
|
|
module_and_function: service.{{ service_function }}
|
|
args:
|
|
- {{ cron.service }}
|
|
assertion: assertTrue
|