aboutsummaryrefslogtreecommitdiff
path: root/lib/facter/debian_lts.rb
blob: 1c137e1117f1afd641ab29263893274a47a88780 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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