Fix loading of util/debian.rb for custom facts

requirering the facter/util/debian.rb module causes
puppet warnings on wheezy hosts, and custom facts like
`$::debian_codename` cannot be evaluated.

    warning: Could not load fact file
      /srv/dev/projects/puppet/shared-modules//apt/lib/facter/debian_nextcodename.rb:
      no such file to load -- facter/util/debian

Removing the require line solves this.
This commit is contained in:
varac 2015-12-07 14:27:04 +01:00
parent 6b27efb434
commit a70c52c1d4
5 changed files with 10 additions and 0 deletions

View file

@ -1,5 +1,7 @@
begin
require 'facter/util/debian'
rescue LoadError
require "#{File.dirname(__FILE__)}/util/debian"
end
def version_to_codename(version)

View file

@ -1,5 +1,7 @@
begin
require 'facter/util/debian'
rescue LoadError
require "#{File.dirname(__FILE__)}/util/debian"
end
Facter.add(:debian_lts) do

View file

@ -1,5 +1,7 @@
begin
require 'facter/util/debian'
rescue LoadError
require "#{File.dirname(__FILE__)}/util/debian"
end
def debian_codename_to_next(codename)

View file

@ -1,5 +1,7 @@
begin
require 'facter/util/debian'
rescue LoadError
require "#{File.dirname(__FILE__)}/util/debian"
end
def debian_codename_to_release(codename)

View file

@ -1,5 +1,7 @@
begin
require 'facter/util/ubuntu'
rescue LoadError
require "#{File.dirname(__FILE__)}/util/debian"
end
def ubuntu_codename_to_next(codename)