mirror of
https://github.com/saltstack-formulas/cron-formula.git
synced 2026-10-24 14:25:06 +02:00
refactor(pillar): sync map.jinja with template-formula
This commit is contained in:
1 parent
07bf957430
commit
e00c316ebe
16 files changed
+185
-50
No files matched your search
@@ -0,0 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=sls
|
||||
|
||||
include:
|
||||
- .running
|
||||
@@ -0,0 +1,17 @@
|
||||
# -*- 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:
|
||||
{%- if 'enabled' not in cron or ( 'enabled' in cron and cron.enabled ) %}
|
||||
service.running:
|
||||
- name: {{ cron.service }}
|
||||
- enable: true
|
||||
{%- else %}
|
||||
service.dead:
|
||||
- name: {{ cron.service }}
|
||||
- enable: false
|
||||
{%- endif %}
|
||||
Reference in new issue
Block a user