mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-01-06 08:13:32 +01:00
more changes for healthcheck - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/90
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{% set CHECKS = salt['pillar.get']('healthcheck:checks', {} %}
|
||||
{% set ENABLED = salt['pillar.get']('healthcheck:enabled', False %}
|
||||
{% set SCHEDULE = salt['pillar.get']('healthcheck:schedule', 30 %}
|
||||
{% set CHECKS = salt['pillar.get']('healthcheck:checks', {}) %}
|
||||
{% set ENABLED = salt['pillar.get']('healthcheck:enabled', False) %}
|
||||
{% set SCHEDULE = salt['pillar.get']('healthcheck:schedule', 30) %}
|
||||
|
||||
{% if CHECKS and ENABLED %}
|
||||
{% set STATUS = ['present','enabled'] %}
|
||||
@@ -10,17 +10,16 @@ nohealthchecks:
|
||||
test.configurable_test_state:
|
||||
- name: nohealthchecks
|
||||
- changes: True
|
||||
- result: False
|
||||
- comment: No checks are enabled for the healthcheck schedule
|
||||
- warnings: Add checks to the healcheck:checks pillar
|
||||
- result: True
|
||||
- comment: 'No checks are enabled for the healthcheck schedule'
|
||||
{% endif %}
|
||||
|
||||
healthcheck_schedule_{{STATUS[0]}}:
|
||||
schedule.{{STATUS[0]}}:
|
||||
healthcheck_schedule_{{ STATUS[0] }}:
|
||||
schedule.{{ STATUS[0] }}:
|
||||
- name: healthcheck
|
||||
- function: healthcheck.run
|
||||
- minutes: {{ SCHEDULE }}
|
||||
|
||||
healthcheck_schedule_{{STATUS[1]}}:
|
||||
schedule.{{STATUS[1]}}:
|
||||
healthcheck_schedule_{{ STATUS[1] }}:
|
||||
schedule.{{ STATUS[1] }}:
|
||||
- name: healthcheck
|
||||
|
||||
Reference in New Issue
Block a user