Hi Stephen, Maybe you could just use a simple shell provisioner to create some sentinel file (like /root/vagrant-env) and check the existence of that.
-- Teemu On Sat, May 31, 2014 at 1: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.
