X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=env%2Flib%2Fcommon.sh;h=7a91208d06cdf94e86f88fad747f663ab432cd28;hb=818ebd97b869309fefa0cc102ab0a9f067f9a51d;hp=6ee235ea1955d9d8560e14feda4c70b16f394023;hpb=15eb5f9a89d0dbbff46e1b2a02bee7df1d533af6;p=icn.git diff --git a/env/lib/common.sh b/env/lib/common.sh index 6ee235e..7a91208 100755 --- a/env/lib/common.sh +++ b/env/lib/common.sh @@ -47,6 +47,9 @@ CAPM3_VERSION="v0.5.1" #The flux version to use FLUX_VERSION="0.20.0" +#The sops version to use +SOPS_VERSION="v3.7.1" + #refered from onap function call_api { #Runs curl with passed flags and provides @@ -119,6 +122,42 @@ function list_nodes { fi } +function node_userdata { + name="$1" + username="$2" + password="$3" + COMPUTE_NODE_FQDN="$name.akraino.icn.org" + + # validate that the user isn't expecting the deprecated + # COMPUTE_NODE_PASSWORD to be used + if [ "$password" != "${COMPUTE_NODE_PASSWORD:-$password}" ]; then + cat <