From bdab8c59fb160043a4579ff2957ef1e9322c8cf5 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Fri, 31 Mar 2023 17:21:20 +0200 Subject: [PATCH] updated dkron state --- states/dkron/defaults.yaml | 17 +++++++++++++++++ states/dkron/jobs.sls | 1 + 2 files changed, 18 insertions(+) diff --git a/states/dkron/defaults.yaml b/states/dkron/defaults.yaml index 010e98a..d758c00 100644 --- a/states/dkron/defaults.yaml +++ b/states/dkron/defaults.yaml @@ -19,3 +19,20 @@ dkron: http-addr: 127.0.0.1:8898 data-dir: /var/lib/dkron jobs: {} + default_job: + displayname: 'Default Job' + schedule: "0 0 0 * * *" + timezone: "Europe/Paris" + owner: "root" + owner_email: "@paulbsd.com" + disabled: false + tags: {} + retries: 0 + processors: {} + concurrency: forbid + executor: shell + executor_config: + command: "echo 'test'" + env: > + "PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" + shell: 'true' diff --git a/states/dkron/jobs.sls b/states/dkron/jobs.sls index c25f85e..087fa38 100644 --- a/states/dkron/jobs.sls +++ b/states/dkron/jobs.sls @@ -6,3 +6,4 @@ dkron-jobs: - url: {{ dkron.url }} - verify: {{ dkron.verify }} - jobs: {{ dkron.jobs }} + - default_job: {{ dkron.default_job }}