Skip to content

Path to ssh key is resolved relative to cwd, not Vagrantfile #159

Closed

Description

@luto

All the paths given in a Vagrantfile are resolved relative to the file itself, for example the ansible provisioners ansible.playbook = "site.yml". This plugin always resolves the location of the SSH key relative to the current working directory. This breaks as soon as the user tries to execute a vagrant-command in a subdirectory.

Instead the plugin should look for the SSH key files relative to the Vagrantfile.

If you agree that this should be changed, I'll be more than happy to prepare a PR for it.

Activity

  1. Temikus commented on Apr 25, 2017

    @Temikus
    Collaborator

    @luto Sorry for the late response.

    Yeah, I do see your point, I think it makes sense to do it, esp. considering that current directory is quite a variable when it comes to Vagrant installed as a driver.

    I'll need to bump the version to next major one though as it's, in theory, a breaking change.

  2. luto commented on Apr 25, 2017

    @luto
    ContributorAuthor

    Alright. I will take a closer look at where this path is resolved and prepare a PR. Thanks!

  3. added a commit that references this issue on May 7, 2017
    d821468
  4. added a commit that references this issue on Oct 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions