We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a060208 commit e6a058dCopy full SHA for e6a058d
nova_boot_cert_auth.sh
@@ -1,4 +1,4 @@
1
-#!/bin/sh
+#!/bin/bash
2
set -e
3
4
PEM_FILE=winrm_client_cert.pem
@@ -11,7 +11,7 @@ FLAVOR=2
11
# to overcome Nova's custom metadata length limit
12
declare -a CERT=(`openssl x509 -inform pem -in "$PEM_FILE" -outform der | base64 -w 0 |sed -r 's/(.{255})/\1\n/g'`)
13
14
-nova boot --flavor $FLAVOR --image "$IMAGE_NAME" --key-name $KEY1 $INSTANCE_NAME \
+nova boot --flavor $FLAVOR --image "$IMAGE_NAME" --key-name $KEY $INSTANCE_NAME \
15
--meta admin_cert0="${CERT[0]}" \
16
--meta admin_cert1="${CERT[1]}" \
17
--meta admin_cert2="${CERT[2]}" \
0 commit comments