Re: [vagrant-up] How can I check if machine is already provisioned inside Vagrantfile?

187 views
Skip to first unread message

Alvaro Miranda Aguilera

unread,
Mar 4, 2016, 9:21:55 PM3/4/16
to vagra...@googlegroups.com
Hello.

What's the use case?

Since in the past sometimes the script have been able to check if has been run or not.

Can you share more information on the use case you got?

Thanks
Alvaro

On Wed, Mar 2, 2016 at 5:47 AM, Andres Montalban <amont...@devopx.com> wrote:
Hey guys,

I have a situation where I want to ask user if they want to configure a bridge interface or not, and would like to do it on first time they do "vagrant up".

I saw that you have an env variable called provision_enabled [1] but can't find the way to use it inside the Vagrantfile. Also [2] was asking the same thing but it seems he used a workaround, and I think that this can be addressed somehow so we can do programatically usage of Vagrant.

Would be great if we can have a method like is_provisioned? 

Thank you very much for your help!

Have a good one,
Andres

--

--
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/5aa5316d-d9aa-4af1-83da-1fa22aea2ed5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages