Make folder/file states explicit

Rather than using /nsm/zeek (max_depth: 1) create explicit states for /nsm/zeek/spool and /nsm/zeek/spool/state.db that set correct ownership
This commit is contained in:
William Wernert
2021-10-27 11:43:09 -04:00
parent 9e9079f9cb
commit eee612e73d

View File

@@ -90,11 +90,14 @@ zeekpolicysync:
# Ensure the zeek spool tree (and state.db) ownership is correct
zeekspoolownership:
file.directory:
- name: /nsm/zeek
- name: /nsm/zeek/spool
- user: 937
- max_depth: 1
- recurse:
- user
zeekstatedbownership:
file.managed:
- name: /nsm/zeek/spool/state.db
- user: 937
- replace: False
- create: False
# Sync Intel
zeekintelloadsync: