Well, the below trivial patch will fix it for now. Don’t forget to restart Foreman - and note this is the updated puppet plugin 9.0.0:
--- puppet_class_importer.rb 2025-08-01 11:08:24.043282493 +0200
+++ /usr/share/gems/gems/foreman_puppet-9.0.0/app/services/foreman_puppet/puppet_class_importer.rb 2025-08-01 11:08:36.617138012 +0200
@@ -231,7 +231,7 @@
def load_ignored_file
if File.exist?(ignored_file_path)
# Ruby 3+
- if YAML.respond_to(:safe_load_file)
+ if YAML.respond_to?(:safe_load_file)
YAML.safe_load_file(ignored_file_path, permitted_classes: [Symbol, Regexp])
else
# NOTE: Once we drop Ruby 2.7 support, you can drop the load_file call.