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:
parent
6b27efb434
commit
a70c52c1d4
5 changed files with 10 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
begin
|
||||
require 'facter/util/debian'
|
||||
rescue LoadError
|
||||
require "#{File.dirname(__FILE__)}/util/debian"
|
||||
end
|
||||
|
||||
def version_to_codename(version)
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
begin
|
||||
require 'facter/util/debian'
|
||||
rescue LoadError
|
||||
require "#{File.dirname(__FILE__)}/util/debian"
|
||||
end
|
||||
|
||||
Facter.add(:debian_lts) do
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
begin
|
||||
require 'facter/util/debian'
|
||||
rescue LoadError
|
||||
require "#{File.dirname(__FILE__)}/util/debian"
|
||||
end
|
||||
|
||||
def debian_codename_to_next(codename)
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
begin
|
||||
require 'facter/util/debian'
|
||||
rescue LoadError
|
||||
require "#{File.dirname(__FILE__)}/util/debian"
|
||||
end
|
||||
|
||||
def debian_codename_to_release(codename)
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
begin
|
||||
require 'facter/util/ubuntu'
|
||||
rescue LoadError
|
||||
require "#{File.dirname(__FILE__)}/util/debian"
|
||||
end
|
||||
|
||||
def ubuntu_codename_to_next(codename)
|
||||
|
|
Loading…
Reference in a new issue