mcst-linux-kernel/patches-2024.06.26/puppet-7.5.0/0001-remove-facter-and-hier...

31 lines
912 B
Diff

--- a/install.rb 2021-03-10 09:55:02.000000000 +0000
+++ b/install.rb 2021-08-02 15:59:17.523110743 +0000
@@ -44,7 +44,7 @@
$haverdoc = false
end
-PREREQS = %w{openssl facter cgi hiera}
+PREREQS = %w{openssl cgi }
MIN_FACTER_VERSION = 1.5
InstallOptions = OpenStruct.new
@@ -122,7 +122,7 @@
facter_version = Facter.version.to_f
if facter_version < MIN_FACTER_VERSION
puts "Facter version: #{facter_version}; minimum required: #{MIN_FACTER_VERSION}; cannot install"
- exit(-1)
+ #exit(-1)
end
end
rescue LoadError
@@ -242,7 +242,8 @@
# Otherwise facter won't be guaranteed to be present.
if InstallOptions.check_prereqs
check_prereqs
- $operatingsystem = Facter.value :operatingsystem
+ #$operatingsystem = Facter.value :operatingsystem
+ $operatingsystem = "linux"
end
if not InstallOptions.configdir.nil?