detecting if chef is ran under vagrant

Developer from somewhere

if node.name =~ /vagrant/
  # do stuff
end