Initial support for checking state of manager during setup

This commit is contained in:
William Wernert
2021-04-09 09:39:33 -04:00
parent 0ea57b4848
commit b2fcd438c2
4 changed files with 43 additions and 2 deletions

View File

@@ -304,6 +304,11 @@ sostatusdir:
- user: 0
- group: 0
- makedirs: True
sostatus_log:
file.managed:
- name: /opt/so/log/sostatus/status.log
- mode: 644
# Install sostatus check cron
/usr/sbin/so-status -q && echo $? > /opt/so/log/sostatus/status.log 2>&1: