mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 02:02:50 +01:00
Merge branch '2.4/dev' of https://github.com/Security-Onion-Solutions/securityonion into airgaps
This commit is contained in:
@@ -12,7 +12,7 @@ printf "\n### Create ES Token ###\n"
|
|||||||
ESTOKEN=$(curl -K /opt/so/conf/elasticsearch/curl.config -L -X POST "localhost:5601/api/fleet/service_tokens" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' | jq -r .value)
|
ESTOKEN=$(curl -K /opt/so/conf/elasticsearch/curl.config -L -X POST "localhost:5601/api/fleet/service_tokens" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' | jq -r .value)
|
||||||
|
|
||||||
### Create Outputs & Fleet URLs ###
|
### Create Outputs & Fleet URLs ###
|
||||||
printf "\nAdd Manager Elasticsearch Ouput...\n"
|
printf "\nAdd Manager Elasticsearch Output...\n"
|
||||||
ESCACRT=$(openssl x509 -in /etc/pki/tls/certs/intca.crt)
|
ESCACRT=$(openssl x509 -in /etc/pki/tls/certs/intca.crt)
|
||||||
JSON_STRING=$( jq -n \
|
JSON_STRING=$( jq -n \
|
||||||
--arg ESCACRT "$ESCACRT" \
|
--arg ESCACRT "$ESCACRT" \
|
||||||
@@ -98,4 +98,4 @@ salt-call state.apply elasticfleet queue=True
|
|||||||
|
|
||||||
# Generate installers & install Elastic Agent on the node
|
# Generate installers & install Elastic Agent on the node
|
||||||
so-elastic-agent-gen-installers
|
so-elastic-agent-gen-installers
|
||||||
salt-call state.apply elasticfleet.install_agent_grid queue=True
|
salt-call state.apply elasticfleet.install_agent_grid queue=True
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -31,6 +31,8 @@ log_has_errors() {
|
|||||||
|
|
||||||
# Ignore Failed: 0 since that is the salt state output, and we detect state failures
|
# Ignore Failed: 0 since that is the salt state output, and we detect state failures
|
||||||
# via Result: False already.
|
# via Result: False already.
|
||||||
|
|
||||||
|
# Ignore "/tmp/__salt.tmp." and "retcode: 126" as they seem to be related to a transient issue with the elastic agent for linux
|
||||||
|
|
||||||
grep -E "FAILED|Failed|failed|ERROR|Result: False" "$setup_log" | \
|
grep -E "FAILED|Failed|failed|ERROR|Result: False" "$setup_log" | \
|
||||||
grep -vE "The Salt Master has cached the public key for this node" | \
|
grep -vE "The Salt Master has cached the public key for this node" | \
|
||||||
@@ -44,6 +46,8 @@ log_has_errors() {
|
|||||||
grep -vE "Exception in callback None" | \
|
grep -vE "Exception in callback None" | \
|
||||||
grep -vE "deprecation: ERROR" | \
|
grep -vE "deprecation: ERROR" | \
|
||||||
grep -vE "code: 100" | \
|
grep -vE "code: 100" | \
|
||||||
|
grep -vE "/tmp/__salt.tmp." | \
|
||||||
|
grep -vE "retcode: 126" | \
|
||||||
grep -vE "Running scope as unit" &> "$error_log"
|
grep -vE "Running scope as unit" &> "$error_log"
|
||||||
|
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user