diff options
Diffstat (limited to 'genpki.sh')
-rwxr-xr-x | genpki.sh | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -2,11 +2,24 @@ set -xe +# Enter proper cluster subdirectory + cd $(dirname $0) +CLUSTER="$1" +if [ ! -d "cluster/$CLUSTER" ]; then + echo "Usage: $0 <cluster name>" + echo "The cluster name must be the name of a subdirectory of cluster/" + exit 1 +fi + +cd cluster/$CLUSTER + mkdir -p secrets/pki cd secrets/pki +# Do actual stuff + YEAR=$(date +%Y) for APP in consul nomad; do # 1. Create certificate authority |