mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-22 00:43:09 +01:00
dont have py3 yaml module installed yet so do it like this
This commit is contained in:
@@ -716,10 +716,12 @@ function checkMine() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add Elastic Agent settings to the minion file
|
|
||||||
function create_ca_pillar() {
|
function create_ca_pillar() {
|
||||||
local capillar=/opt/so/saltstack/local/pillar/ca/init.sls
|
local capillar=/opt/so/saltstack/local/pillar/ca/init.sls
|
||||||
/usr/sbin/so-yaml.py replace $capillar ca.server $MINION_ID
|
printf '%s\n'\
|
||||||
|
"ca:"\
|
||||||
|
" server: $MINION_ID"\
|
||||||
|
" " > $capillar
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
log "ERROR" "Failed to add $MINION_ID to $capillar"
|
log "ERROR" "Failed to add $MINION_ID to $capillar"
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user