Calling scripts from Vagrant inside password protected BitBucket repo

26 views
Skip to first unread message

monosij...@gmail.com

unread,
Nov 23, 2015, 12:53:07 AM11/23/15
to Vagrant
Hello All -

I have been using Vagrant to setup VMs and also call scripts from GitHub repos that are open, as in not password protected, using the RAW link to the scripts.

Example:
and then:
vagrantDocker.vm.provision "shell", path: script_SetupDocker

However, am unable to run those same scripts when in a BitBucket Repo, which is not public but password protected.

Would there be a way to call scripts that I can provide a username to (of BitBucket or GitHub) and then it asks me for the password once?
It would be great if it asked me for the password once and not for each script.

I have been able to call scripts sending an array of arguments.

I am thinking there must be some way to send a username and then type in a password?

Or should my BitBucket repo should have an ssh key based authentication already set up?

Please let me know when you get  a chance.

Thank you for your help.

Mono

Alvaro Miranda Aguilera

unread,
Nov 25, 2015, 12:37:58 AM11/25/15
to vagra...@googlegroups.com
Hello, the url has an standard way to authenticate


http://user:password@server:port/path/path/file.extension

Give it a try and use the password from a ENV Variable.

Will this work?

Alvaro.
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/861ad46e-d550-4d19-aa3c-7134622ced5f%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Monosij Dutta-Roy

unread,
Nov 25, 2015, 8:27:46 PM11/25/15
to vagra...@googlegroups.com
Thank you Alvaro. Worked great. Should have known that.

Much appreciated.

Mono

You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/AFhQ0f4lHr8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ey9BJdeu8nwmiuoV5X0WXbL1f%2BEc2zQ-V-VSN4ft7tEMg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages