Skip to content
Snippets Groups Projects
Commit 2bce0f61 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "init-runonce: Migrate to ECDSA keys"

parents db271beb d2bc0b42
No related branches found
No related tags found
No related merge requests found
...@@ -109,13 +109,13 @@ $KOLLA_OPENSTACK_COMMAND security group rule create --ingress --ethertype IPv4 \ ...@@ -109,13 +109,13 @@ $KOLLA_OPENSTACK_COMMAND security group rule create --ingress --ethertype IPv4 \
$KOLLA_OPENSTACK_COMMAND security group rule create --ingress --ethertype IPv4 \ $KOLLA_OPENSTACK_COMMAND security group rule create --ingress --ethertype IPv4 \
--protocol tcp --dst-port 8080 ${ADMIN_SEC_GROUP} --protocol tcp --dst-port 8080 ${ADMIN_SEC_GROUP}
if [ ! -f ~/.ssh/id_rsa.pub ]; then if [ ! -f ~/.ssh/id_ecdsa.pub ]; then
echo Generating ssh key. echo Generating ssh key.
ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa ssh-keygen -t ecdsa -N '' -f ~/.ssh/id_ecdsa
fi fi
if [ -r ~/.ssh/id_rsa.pub ]; then if [ -r ~/.ssh/id_ecdsa.pub ]; then
echo Configuring nova public key and quotas. echo Configuring nova public key and quotas.
$KOLLA_OPENSTACK_COMMAND keypair create --public-key ~/.ssh/id_rsa.pub mykey $KOLLA_OPENSTACK_COMMAND keypair create --public-key ~/.ssh/id_ecdsa.pub mykey
fi fi
# Increase the quota to allow 40 m1.small instances to be created # Increase the quota to allow 40 m1.small instances to be created
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment