2019-08-28 00:21:22 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: ft=sls
|
|
|
|
|
|
|
|
{#- Get the `tplroot` from `tpldir` #}
|
|
|
|
{%- set tplroot = tpldir.split('/')[0] %}
|
|
|
|
{%- from tplroot ~ "/map.jinja" import cron with context %}
|
|
|
|
|
|
|
|
cron.service:
|
2020-09-10 04:06:20 +02:00
|
|
|
{%- if cron.enabled %}
|
2019-08-28 00:21:22 +02:00
|
|
|
service.running:
|
|
|
|
- name: {{ cron.service }}
|
|
|
|
- enable: true
|
|
|
|
{%- else %}
|
|
|
|
service.dead:
|
|
|
|
- name: {{ cron.service }}
|
|
|
|
- enable: false
|
|
|
|
{%- endif %}
|