IDH - Import & Enables Plays

This commit is contained in:
Josh Brower
2022-02-23 10:50:13 -05:00
parent 1d95aca4de
commit 83aa261d88
5 changed files with 66 additions and 2 deletions

View File

@@ -109,6 +109,18 @@ so-playbookruleupdatecron:
- user: root
- minute: '1'
- hour: '6'
{% if 'idh' in salt['cmd.shell']("ls /opt/so/saltstack/local/pillar/minions/|awk -F'_' {'print $2'}|awk -F'.' {'print $1'}").split() %}
idh-plays:
file.recurse:
- name: /opt/so/conf/soctopus/sigma-import
- source: salt://idh/plays
- makedirs: True
cmd.run:
- name: so-playbook-import true
- onchanges:
- file: /opt/so/conf/soctopus/sigma-import
{% endif %}
{% else %}