Bladeren bron

Merge 34202c3cb9 into addd0d2da0

pull/237/merge
Kat R. 1 maand geleden
bovenliggende
commit
0ac01e3262
No account linked to committer's email address
1 gewijzigde bestanden met toevoegingen van 6 en 4 verwijderingen
  1. +6
    -4
      linux/system/job.sls

+ 6
- 4
linux/system/job.sls Bestand weergeven

@@ -6,13 +6,14 @@ include:
- linux.system.cron

{%- for name, job in system.job.items() %}
{%- set job_user = job.get('user', 'root') %}
{%- set job_user = job.get('user', 'root') %}
{%- set job_state_name = job.get('identifier', job.command) %}

linux_job_{{ job.command }}:
linux_job_{{ name }}:
{%- if job.get('enabled', True) %}
cron.present:
- name: >
{{ job.command }}
{{ job_state_name }}
{%- if job.get('identifier', True) %}
- identifier: {{ job.get('identifier', job.get('name', name)) }}
{%- endif %}
@@ -46,7 +47,8 @@ linux_job_{{ job.command }}:
{%- endif %}
{%- else %}
cron.absent:
- name: {{ job.command }}
- name: >
{{ job_state_name }}
{%- if job.get('identifier', True) %}
- identifier: {{ job.get('identifier', job.get('name', name)) }}
{%- endif %}

Laden…
Annuleren
Opslaan