0
0
mirror of https://github.com/saltstack-formulas/cron-formula.git synced 2024-12-01 00:25:09 +01:00
cron-formula/cron/saltcheck-tests/service.tst
2019-10-15 05:21:04 +01:00

16 lines
397 B
Scilab

# -*- coding: utf-8 -*-
# vim: ft=sls
{%- from "cron/map.jinja" import cron_settings with context %}
cron.service:
{%- if 'enabled' not in cron_settings or ( 'enabled' in cron_settings and cron_settings.enabled ) %}
service.running:
- name: {{ cron_settings.service }}
- enable: True
{%- else %}
service.dead:
- name: {{ cron_settings.service }}
- enable: False
{%- endif %}