summaryrefslogtreecommitdiff
path: root/puppet/modules/site_config/lib/facter/vagrant.rb
blob: 29a218dd952185fbe7a7fa3962f71f239db6cf45 (plain)
1
2
3
4
5
6
7
8
# Checks if systems runs inside vagrant
require 'facter'

Facter.add(:vagrant) do
  setcode do
    FileTest.exists?('/vagrant')
  end
end