diff options
| author | caowei <cao.wei@99cloud.net> | 2016-09-26 18:19:20 +0800 |
|---|---|---|
| committer | caowei <cao.wei@99cloud.net> | 2016-09-26 19:33:25 +0800 |
| commit | 3e5e7f27d72727928bd39798e98a3a15d866cea5 (patch) | |
| tree | 5ee88310d782a9b939ccafae5ed3f13f1fc9deb7 /tools | |
| parent | ffbd2c0956d30557f91436828a0e75dec988f8e1 (diff) | |
| download | kolla-3e5e7f27d72727928bd39798e98a3a15d866cea5.tar.gz kolla-3e5e7f27d72727928bd39798e98a3a15d866cea5.zip | |
Adding the steps of generateing ssh key in tools/init-runonce
TrivialFix
Change-Id: I66857a92b0ae61cd8300955e2bf9605f93937b1d
Diffstat (limited to 'tools')
| -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 |
