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

SMB Username Password #4

Open
toenuff opened this issue Mar 7, 2018 · 0 comments
Open

SMB Username Password #4

toenuff opened this issue Mar 7, 2018 · 0 comments

Comments

@toenuff
Copy link

toenuff commented Mar 7, 2018

You can specify username/password in Vagrantfile with the following syntax:

$smb_username = "smbuser"
$smb_password = "notarealpassword"

    subconfig.vm.synced_folder "../vagrant-synced/", "/vagrant", type: "smb",
        smb_password: $smb_password, smb_username: $smb_username

I tested this with both k-builder and k-m1. The windows host is downloading now, but I expect it to work there too.

Possible implementation:
setup-enviornment.ps1 can validate that you have an smbuser.yml (added to .gitignore) and that the user is a valid admin. Then the Vagrantfile can directly load the yaml in. Technique outlined here. It's not perfect, but it's better than it is now - specifically the prompts for user/password that if you type incorrectly fails the whole thing.

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

No branches or pull requests

1 participant