From a9113a99a697b24fd5eeae30e458493af6bfb7c4 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Thu, 19 Sep 2019 08:52:44 -0400 Subject: [PATCH] cmd.script cleanup --- salt/hive/init.sls | 3 ++- salt/utility/init.sls | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/salt/hive/init.sls b/salt/hive/init.sls index 3fc364e4e..3f8d5e04e 100644 --- a/salt/hive/init.sls +++ b/salt/hive/init.sls @@ -97,8 +97,9 @@ so-thehive: - /opt/so/conf/hive/etc/application.conf:/opt/thehive/conf/application.conf:ro - port_bindings: - 0.0.0.0:9000:9000 - + hivescript: cmd.script: - source: salt://hive/thehive/scripts/hive_init.sh + - cwd: /root - template: jinja diff --git a/salt/utility/init.sls b/salt/utility/init.sls index 845da59c7..07996f3e6 100644 --- a/salt/utility/init.sls +++ b/salt/utility/init.sls @@ -5,6 +5,7 @@ crossclusterson: cmd.script: - shell: /bin/bash + - cwd: /root - runas: socore - source: salt://utility/bin/crossthestreams.sh - template: jinja @@ -15,6 +16,7 @@ crossclusterson: fixsearch: cmd.script: - shell: /bin/bash + - cwd: /root - runas: socore - source: salt://utility/bin/eval.sh - template: jinja