2015-05-11 16:49:27 +02:00
|
|
|
begin
|
|
|
|
require 'facter/util/debian'
|
2015-12-07 14:27:04 +01:00
|
|
|
rescue LoadError
|
|
|
|
require "#{File.dirname(__FILE__)}/util/debian"
|
2015-05-11 16:49:27 +02:00
|
|
|
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
|