'/vagrant' directory exists in Vagrant instances.  I haven't found a more 
"correct" way of doing it.

On Friday, May 30, 2014 6:59:30 PM UTC-4, Stephen Wood wrote:
>
> Is there some immutable I can check to determine if I am in a vagrant 
> virtual environment?
>
> I'd like to set a custom grain with saltstack, but none of my ideas quite 
> hit the spot:
>
> 1. Check if /home/vagrant exists (but what if the user is deleted?)
> 2. grep vboxguest /proc/misc (What if we're using vmware?)
> 3. ??
>
> How would you guys determine if a host is indeed a vagrant virtualized 
> environment.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to