Support multiple elastic system users

This commit is contained in:
Jason Ertel
2021-05-28 14:49:43 -04:00
parent 4e8dc0e3b9
commit b8a10f2e86
2 changed files with 47 additions and 7 deletions

View File

@@ -252,6 +252,7 @@ lookup_salt_value() {
key=$1
group=$2
kind=$3
output=${4:-newline_values_only}
if [ -z "$kind" ]; then
kind=pillar
@@ -261,7 +262,7 @@ lookup_salt_value() {
group=${group}:
fi
salt-call --no-color ${kind}.get ${group}${key} --out=newline_values_only
salt-call --no-color ${kind}.get ${group}${key} --out=${output}
}
lookup_pillar() {