From eda9d4e2e33f7cc7f67324b5e04c6c68d90d3cc2 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Tue, 17 Jan 2012 15:44:05 +0000 Subject: [PATCH] Let's see if this works Signed-off-by: Stephen Gran --- modules/debian-org/lib/facter/os-for-bsd.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 modules/debian-org/lib/facter/os-for-bsd.rb diff --git a/modules/debian-org/lib/facter/os-for-bsd.rb b/modules/debian-org/lib/facter/os-for-bsd.rb new file mode 100644 index 000000000..77cad42ec --- /dev/null +++ b/modules/debian-org/lib/facter/os-for-bsd.rb @@ -0,0 +1,8 @@ +Facter.add(:operatingsystem) do + confine :kernel => 'GNU/kFreeBSD' + setcode do + if FileTest.exists?("/etc/debian_version") + "Debian" + end + end +end -- 2.20.1