Create a gist now

Instantly share code, notes, and snippets.

Facter.add("is_vagrant") do
setcode do
vagrant = false
if File.exist? "/home/vagrant"
vagrant = true
end
vagrant
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment