summaryrefslogtreecommitdiff
path: root/lib/facter/debian_lts.rb
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-12-05 20:26:39 +0100
committervarac <varacanero@zeromail.org>2015-12-05 20:26:39 +0100
commitb6cb0285053a0ffd23082d7e63a87108ca0e3fbd (patch)
treea142332e3419df289e9437b6477971276cbc836f /lib/facter/debian_lts.rb
parentab90d1d0fe9655d367c637e95dff59e4dbe2dd35 (diff)
parentd372562329371c24df889d69ca4d476eda6497e9 (diff)
Merge remote-tracking branch 'shared/master' into leap_master
Diffstat (limited to 'lib/facter/debian_lts.rb')
-rw-r--r--lib/facter/debian_lts.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/facter/debian_lts.rb b/lib/facter/debian_lts.rb
new file mode 100644
index 0000000..1c137e1
--- /dev/null
+++ b/lib/facter/debian_lts.rb
@@ -0,0 +1,14 @@
+begin
+ require 'facter/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