Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Vagrantfile in local ansible test guide #538

Merged
merged 1 commit into from
Dec 10, 2016

Conversation

phillipj
Copy link
Member

For some reason, the previous Vagrantfile example didn't work anymore. When running vagrant up the root user was simply not able to do the initial login to the server anymore, it stalled at:

==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: root
    default: SSH auth method: private key
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...

Therefore the virtual machine setup procedure had to be manually aborted.

With these changes, we don't initially login with root anymore as that turned out to be quite brittle. We now use the traditional vagrant user and copy the custom SSH key into root's .ssh-folder as the last step, still allowing us to login as root after the virtual machine has been setup.

For some reason, the previous Vagrantfile example didn't work anymore.
When running `vagrant up` the root user was simply not able to do
the initial login to the server anymore, it stalled at:

```
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: root
    default: SSH auth method: private key
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
```

Therefore the virtual machine setup procedure had to be manually aborted.

With these changes, we don't initially login with root anymore as that
turned out to be quite brittle. We now use the traditional 'vagrant' user
and copy the custom SSH key into root's .ssh-folder as the last step,
still allowing us to login as root after the virtual machine has been setup.
@phillipj
Copy link
Member Author

@nodejs/build understand this isn't trivial to review, unless taking the time to test the guide. You okey with me merging anyhow, as this doesn't affect anything runtime in any way?

@jbergstroem
Copy link
Member

Get it done. Sorry for holding up progress.

@phillipj phillipj merged commit 3bc0928 into nodejs:master Dec 10, 2016
@phillipj phillipj deleted the fix-ansible-local-setup branch December 10, 2016 22:39
@phillipj
Copy link
Member Author

Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants