浏览代码

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

正在加载...
取消
保存