monitoring: fix glsa systemd compat (#191)

* monitoring: fix glsa systemd compat
This commit is contained in:
Alexander Miroshnichenko 2021-09-08 11:48:33 +00:00 committed by GitHub
parent e633dd46d8
commit 0f924f173c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View File

@ -12,4 +12,10 @@ sys-process/systemd-cron:
- {{ pkg.gen_atom('sys-process/systemd-cron') }}
- require:
- file: gentoo.portage.packages
cron.target:
service.running:
- enable: True
- require:
- pkg: sys-process/systemd-cron
{% endif %}

View File

@ -14,12 +14,12 @@ net-analyzer/nagios-check_glsa2:
glsa-check-generate:
file.managed:
- source: salt://{{ tpldir }/files/glsa.cron
- source: salt://{{ slspath }}/files/glsa.cron
- name: /etc/cron.d/glsa-check-generate
- require:
- pkg: net-analyzer/nagios-check_glsa2
glsa-check-generate-old-absent:
glsa-check-generate-old-absent:
cron.absent:
- identifier: glsa-check-generate
- name: /usr/lib64/nagios/plugins/check_glsa2_cached.sh --generate

View File

@ -1,2 +1,2 @@
# SALT_CRON_IDENTIFIER:glsa-check-generate
8 * * * * root /usr/lib64/nagios/plugins/check_glsa2_cached.sh --generate
8 * * * * root /usr/lib/nagios/plugins/check_glsa2_cached.sh --generate