b1ff5ff4be
Fix a type in path for facter >= 2.0.1, path: facts.d/os_services_default.txt does not exist. Change-Id: I8879bc6ff498776a488e6a62d5d9de06fefa9cfc
15 lines
386 B
Ruby
15 lines
386 B
Ruby
#
|
|
# This adds the os_service_default fact for people with facter < 2.0.1
|
|
# For people with facter >= 2.0.1, the facts.d/os_service_default.txt should
|
|
# provide this information
|
|
#
|
|
require 'puppet/util/package'
|
|
|
|
if Puppet::Util::Package.versioncmp(Facter.value(:facterversion), '2.0.1') < 0
|
|
Facter.add('os_service_default') do
|
|
setcode do
|
|
'<SERVICE DEFAULT>'
|
|
end
|
|
end
|
|
end
|