at least on redhat/centos the eth0 config file have some comments about
vagrant

/etc/sysconfig/network-scripts/ifcfg-eth0

what's the output of this

grep -iR vagrant /etc/
grep -iR vagrant /var/log




On Sat, May 31, 2014 at 10:59 AM, Stephen Wood <[email protected]> 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.
>

-- 
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