Pārlūkot izejas kodu

added ability to pull groups from cert

master
HMSheets pirms 3 gadiem
vecāks
revīzija
7132da591c
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. +3
    -1
      update-NebulaNodeCert

+ 3
- 1
update-NebulaNodeCert Parādīt failu

@@ -35,6 +35,8 @@ set -- "${POSITIONAL[@]}" # restore positional parameters

NODENAME=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s .[].details.name | sed 's/["]//g')
NODEIPS=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-output .[].details.ips | sed 's/[]["]//g')
NODEGROUPS=($(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-output .[].details.groups | sed 's/[]["]//g' | sed 's/./ /g'))

echo "Node Name: ${NODENAME}"
echo "Node IPs: ${NODEIPS}"
echo "Node IPs: ${NODEIPS}"
echo "Node Groups: ${NODEGROUPS}"

Notiek ielāde…
Atcelt
Saglabāt