neykov commented on this pull request.
> + String privateKey; + try { + privateKey = Files.toString(new File(sshConfig.getIdentityFile()), Charset.defaultCharset()); + } catch (IOException e) { + throw new IllegalStateException("Invalid private key " + sshConfig.getIdentityFile(), e); + } + + LoginCredentials loginCredentials = LoginCredentials.builder() + .user(sshConfig.getUser()) + .privateKey(privateKey) + .build(); + return new NodeAndInitialCredentials<VagrantNode>(node, newMachine.getId(), loginCredentials); + } + + private Collection<String> getNetworks(String name, VagrantApi vagrant) { + String networks = vagrant.ssh(name, "ip address show | grep 'scope global'"); CentOS 7 doesn't have `ifconfig` installed. All of the images I've used so far have `ip`. I've added a comment to explain the choice. In future could add a fallback to `ifconfig` if needed. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/160