mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Replace simple pillar lookup with salt equivalent to ensure quoted values are handled properly
This commit is contained in:
@@ -33,12 +33,12 @@ header() {
|
||||
|
||||
lookup_pillar() {
|
||||
key=$1
|
||||
cat /opt/so/saltstack/local/pillar/global.sls | grep $key | awk '{print $2}'
|
||||
salt-call --no-color pillar.get global:${key} --out=newline_values_only
|
||||
}
|
||||
|
||||
lookup_pillar_secret() {
|
||||
key=$1
|
||||
cat /opt/so/saltstack/local/pillar/secrets.sls | grep $key | awk '{print $2}'
|
||||
salt-call --no-color pillar.get secrets:${key} --out=newline_values_only
|
||||
}
|
||||
|
||||
check_container() {
|
||||
|
||||
Reference in New Issue
Block a user