diff options
Diffstat (limited to 'puppet/modules/site_config/lib')
-rw-r--r-- | puppet/modules/site_config/lib/facter/vagrant.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/puppet/modules/site_config/lib/facter/vagrant.rb b/puppet/modules/site_config/lib/facter/vagrant.rb new file mode 100644 index 00000000..29a218dd --- /dev/null +++ b/puppet/modules/site_config/lib/facter/vagrant.rb @@ -0,0 +1,8 @@ +# Checks if systems runs inside vagrant +require 'facter' + +Facter.add(:vagrant) do + setcode do + FileTest.exists?('/vagrant') + end +end |