Skip to content

Generate and provide an SSH config file to shell script being run#16

Open
mat128 wants to merge 1 commit intophinze:masterfrom
mat128:ssh_config
Open

Generate and provide an SSH config file to shell script being run#16
mat128 wants to merge 1 commit intophinze:masterfrom
mat128:ssh_config

Conversation

@mat128
Copy link
Copy Markdown

@mat128 mat128 commented Sep 1, 2016

Currently, shell scripts being invoked have no way of finding what machine is being provisioned, or what are the connection informations to use. Trying to invoke vagrant ssh-config in the inline script is not possible because Vagrant locks the machine.

This commit generates an "ssh-config" file (similar to the ssh-config target) as a temporary file and provides the path to it in the VAGRANT_SSH_CONFIGFILE environment variable.

Currently, shell scripts being invoked have no way of finding what
machine is being provisioned, or what are the connection informations to
use. Trying to invoke ``vagrant ssh-config`` in the inline script is not
possible because Vagrant locks the machine.

This commit generates an "ssh-config" file (similar to the ssh-config
target) as a temporary file and provides the path to it in the
VAGRANT_SSH_CONFIGFILE environment variable.
@mbelang
Copy link
Copy Markdown

mbelang commented Sep 2, 2016

@phinze Are you still active on the project? We really need this feature :) Really help us bypassing Vagrant locking mechanism while resolving vm ips dynamically.

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