dont have py3 yaml module installed yet so do it like this

This commit is contained in:
Josh Patterson
2025-12-11 18:04:02 -05:00
parent 9960db200c
commit 17b5b81696

View File

@@ -716,10 +716,12 @@ function checkMine() {
}
}
# Add Elastic Agent settings to the minion file
function create_ca_pillar() {
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
log "ERROR" "Failed to add $MINION_ID to $capillar"
return 1