|
|
@@ -29,9 +29,11 @@ if [[ -n $1 ]]; then |
|
|
|
exit |
|
|
|
fi |
|
|
|
|
|
|
|
DATETIME=$(date '%(%Y%m%d-%H%M%S)T\n' -1) |
|
|
|
DATETIME=$(date '+%Y%m%d-%H%M%S') |
|
|
|
|
|
|
|
NODENAME=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s .[].details.name | sed 's/["]//g') |
|
|
|
#### TO-DO #### |
|
|
|
# Make NODEIPS an Array like NODEGROUPS |
|
|
|
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')) |
|
|
|
CERTISCASTATUS=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-output .[].details.isCa) |
|
|
|