瀏覽代碼

added ability to pull groups from cert

master
HMSheets 3 年之前
父節點
當前提交
7132da591c
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      update-NebulaNodeCert

+ 3
- 1
update-NebulaNodeCert 查看文件

@@ -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}"

Loading…
取消
儲存