mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-28 23:47:55 +02:00
stop cron before soup upgrades the manager, start cron at the end. add cron state that is in included in common
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
{% from "cron/map.jinja" import cronmap with context %}
|
||||
|
||||
crond_service:
|
||||
service.dead:
|
||||
- name: {{ cronmap.service }}
|
||||
- enable: True
|
||||
@@ -0,0 +1,8 @@
|
||||
{% set cronmap = salt['grains.filter_by']({
|
||||
'Ubuntu': {
|
||||
'service': 'cron',
|
||||
},
|
||||
'CentOS': {
|
||||
'service': 'crond',
|
||||
},
|
||||
}) %}
|
||||
@@ -0,0 +1,7 @@
|
||||
{% from "cron/map.jinja" import cronmap with context %}
|
||||
|
||||
crond_service:
|
||||
service.running:
|
||||
- name: {{ cronmap.service }}
|
||||
- enable: True
|
||||
- unless: pgrep soup
|
||||
Reference in New Issue
Block a user