Files
securityonion/salt/utility/init.sls
2020-08-12 15:46:34 -04:00

22 lines
581 B
Plaintext

# This state is for checking things
{% if grains['role'] in ['so-manager', 'so-managersearch', 'so-standalone'] %}
# Make sure Cross Cluster is good. Will need some logic once we have hot/warm
crossclusterson:
cmd.script:
- shell: /bin/bash
- cwd: /opt/so
- runas: socore
- source: salt://utility/bin/crossthestreams
- template: jinja
{% endif %}
{% if grains['role'] in ['so-eval', 'so-import'] %}
fixsearch:
cmd.script:
- shell: /bin/bash
- cwd: /opt/so
- runas: socore
- source: salt://utility/bin/eval
- template: jinja
{% endif %}