diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-11-08 14:16:33 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-11-08 14:16:33 +0000 |
| commit | 54cc601eedd1d299b345c7e4912798f7a5c2256c (patch) | |
| tree | 8bcd1d2075a5cfa6659e7fe7f5b93b9ded651184 | |
| parent | b177f04fccbbede2c4c51db9bba3911b51795f36 (diff) | |
| parent | 3e5e7f27d72727928bd39798e98a3a15d866cea5 (diff) | |
| download | kolla-54cc601eedd1d299b345c7e4912798f7a5c2256c.tar.gz kolla-54cc601eedd1d299b345c7e4912798f7a5c2256c.zip | |
Merge "Adding the steps of generateing ssh key in tools/init-runonce"
| -rwxr-xr-x | tools/init-runonce | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/init-runonce b/tools/init-runonce index 7fb50f738..013d2f001 100755 --- a/tools/init-runonce +++ b/tools/init-runonce @@ -71,6 +71,10 @@ else neutron security-group-rule-create default --direction ingress --ethertype IPv4 --protocol tcp --port-range-min 8080 --port-range-max 8080 --remote-ip-prefix 0.0.0.0/0 fi +if [ ! -f ~/.ssh/id_rsa.pub ]; then + echo Generating ssh key. + ssh-keygen -t rsa -f ~/.ssh/id_rsa +fi if [ -r ~/.ssh/id_rsa.pub ]; then echo Configuring nova public key and quotas. nova keypair-add --pub-key ~/.ssh/id_rsa.pub mykey |
