Modifying the SID error running salt in manager #2629
Replies: 5 comments 6 replies
-
@jlaboy71 If it isn't running, start it with: If it is running, restart it with: Check the status again: Rerun: Thanks, |
Beta Was this translation helpful? Give feedback.
-
idstools only run on the manager. What happen when you run sudo salt-call state.apply idstools on the manager? |
Beta Was this translation helpful? Give feedback.
-
There is some formatting issue with your minion file located at
/opt/so/saltstack/local/minions/securityonion_standalone.sls
…On Thu, Jan 14, 2021 at 4:44 PM jlaboy71 ***@***.***> wrote:
Hi, thanks for responding.
this is the output:
***@***.*** /]$ sudo salt-call state.apply
local:
Data failed to compile:
Pillar failed to render with the following messages:
------------------------------
Rendering SLS 'minions.securityonion_standalone' failed. Please see master log for details.
***@***.*** /]$
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2629 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AECMD4FBUX45XDIBVGYHLQLSZ5QUDANCNFSM4WCZSQNA>
.
|
Beta Was this translation helpful? Give feedback.
-
@jlaboy71 |
Beta Was this translation helpful? Give feedback.
-
@jlaboy71 #!/bin/bash
. /usr/sbin/so-common
# Surround double curly braces in any minion pillar in single quotes so the pillars can be parsed as regular yaml
readarray -t minion_pillars <<< "$(find /opt/so/saltstack/local/pillar/minions -type f -name '*.sls')"
for pillar in "${minion_pillars[@]}"; do
sed -i -r "s/ (\{\{.*}})$/ '\1'/g" "$pillar"
done The tool has built in help with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Following the instructions from the documentation
After modifying the file: /opt/so/saltstack/local/pillar/minions/securityonion_standalone.sls
and adding the following disabled SIDs under the idstools section:
dstools:
config:
ruleset: 'ETOPEN'
oinkcode: ''
urls:
sids:
enabled:
disabled:
- 2016149
- 2016150
modify:
I am told to run this command to apply: salt $SENSORNAME_$ROLE state.apply idstools
When I do this, I get this:
[ERROR ]
Salt request timed out. The master is not responding. You may need to run your command with
--async
in order to bypass the congested event bus. With--async
, the CLI tool will print the job id (jid) and exit immediately without listening for responses. You can then usesalt-run jobs.lookup_jid
to look up the results of the job in the job cache later.When I try to use the --async this is what I get:
[netadmin@securityonion minions]$ salt * test.ping
[ERROR ]
Salt request timed out. The master is not responding. You may need to run your command with
--async
in order to bypass the congested event bus. With--async
, the CLI tool will print the job id (jid) and exit immediately without listening for responses. You can then usesalt-run jobs.lookup_jid
to look up the results of the job in the job cache later.[netadmin@securityonion minions]$ salt * test.ping --async
[ERROR ] An un-handled exception was caught by salt's global exception handler:
AuthenticationError: Authentication error occurred.
Traceback (most recent call last):
File "/usr/bin/salt", line 11, in
load_entry_point('salt==3002.2', 'console_scripts', 'salt')()
File "/usr/lib/python3.6/site-packages/salt/scripts.py", line 539, in salt_main
client.run()
File "/usr/lib/python3.6/site-packages/salt/cli/salt.py", line 151, in run
jid = self.local_client.cmd_async(**kwargs)
File "/usr/lib/python3.6/site-packages/salt/client/init.py", line 447, in cmd_async
tgt, fun, arg, tgt_type, ret, jid=jid, kwarg=kwarg, listen=False, **kwargs
File "/usr/lib/python3.6/site-packages/salt/client/init.py", line 348, in run_job
**kwargs
File "/usr/lib/python3.6/site-packages/salt/client/init.py", line 1873, in pub
raise AuthenticationError(err_msg)
salt.exceptions.AuthenticationError: Authentication error occurred.
Traceback (most recent call last):
File "/usr/bin/salt", line 11, in
load_entry_point('salt==3002.2', 'console_scripts', 'salt')()
File "/usr/lib/python3.6/site-packages/salt/scripts.py", line 539, in salt_main
client.run()
File "/usr/lib/python3.6/site-packages/salt/cli/salt.py", line 151, in run
jid = self.local_client.cmd_async(**kwargs)
File "/usr/lib/python3.6/site-packages/salt/client/init.py", line 447, in cmd_async
tgt, fun, arg, tgt_type, ret, jid=jid, kwarg=kwarg, listen=False, **kwargs
File "/usr/lib/python3.6/site-packages/salt/client/init.py", line 348, in run_job
**kwargs
File "/usr/lib/python3.6/site-packages/salt/client/init.py", line 1873, in pub
raise AuthenticationError(err_msg)
salt.exceptions.AuthenticationError: Authentication error occurred.
[netadmin@securityonion minions]$
Can I get some advice?
Thanks,
Jose
Beta Was this translation helpful? Give feedback.
All reactions