diff options
author | elijah <elijah@riseup.net> | 2014-03-13 00:57:44 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-03-13 00:57:44 -0700 |
commit | 82a1295f3a41ace4be6398945dd53e9c300a6d11 (patch) | |
tree | 8d8f969ad1468c32f9fe4eb1ac5acbf950a7e7cb /lib/leap_cli/commands/node.rb | |
parent | 4e7e6b8dfe6363469f700260cf191a6fca6c202e (diff) | |
download | leap_cli-82a1295f3a41ace4be6398945dd53e9c300a6d11.tar.gz leap_cli-82a1295f3a41ace4be6398945dd53e9c300a6d11.tar.bz2 |
various ssh key fixes (REQUIRES rebuilding vagrant nodes).
Diffstat (limited to 'lib/leap_cli/commands/node.rb')
-rw-r--r-- | lib/leap_cli/commands/node.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/node.rb b/lib/leap_cli/commands/node.rb index 056ec28..fdd1fa8 100644 --- a/lib/leap_cli/commands/node.rb +++ b/lib/leap_cli/commands/node.rb @@ -63,7 +63,11 @@ module LeapCli; module Commands update_compiled_ssh_configs ssh_connect_options = connect_options(options).merge({:bootstrap => true, :echo => options[:echo]}) ssh_connect(node, ssh_connect_options) do |ssh| - ssh.install_authorized_keys + if node.vagrant? + ssh.install_authorized_keys2 + else + ssh.install_authorized_keys + end ssh.install_prerequisites ssh.leap.capture(facter_cmd) do |response| if response[:exitcode] == 0 |