aboutsummaryrefslogtreecommitdiff
path: root/lib/facter/debian_lts.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/facter/debian_lts.rb')
-rw-r--r--lib/facter/debian_lts.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/facter/debian_lts.rb b/lib/facter/debian_lts.rb
new file mode 100644
index 0000000..f53a9eb
--- /dev/null
+++ b/lib/facter/debian_lts.rb
@@ -0,0 +1,16 @@
+begin
+ require 'facter/util/debian'
+rescue LoadError
+ require "#{File.dirname(__FILE__)}/util/debian"
+end
+
+Facter.add(:debian_lts) do
+ confine :operatingsystem => 'Debian'
+ setcode do
+ if Facter::Util::Debian::LTS.include? Facter.value('debian_codename')
+ true
+ else
+ false
+ end
+ end
+end