Hello,
We have been using Foreman for more than 3 years now to patch and manage our Windows systems. The version 1.12. is now also a bit older and CentOS release 6.8 is also a bit older. So I started to switch to CentOS Linux release 8.2.2004 and foreman-2.1.0-1. I could already change most of the virtual TestVMs with one procedure to new foreman server and to puppet agent 6.17. All without any problems but with the hardware it always results in an error.
Debug: Caching connection for https://xxxx.domainxxx.xxx:8140
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Found value has wrong type, variant 0 expects a String value, got Tuple
Found value has wrong type, variant 1 index 0 expects a String value, got Undef (file: /etc/puppetlabs/code/environments/production/manifests/site.pp, line: 3, column: 14) on node puppetclient.domainxxx.xxx
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Our site.pp manifest file looks like this
node default {
# Find the first instance of 'classes' in hiera data and includes unique values Does not merge results.
$classes = lookup('classes', Variant[String,Array[String]])
case $classes {
String[1]: {
include $classes
}
Array [String[1],1]: {
$classes.unique.include
}
default: {
fail('This node did not receive any classification')
}
}
}
Unfortunately, the puppet agent -t -debug does not help to find the wrong value. Why does everything work on VMware clients but not on hardware ?
I have already tried older agents but all with the same result.
I would be grateful for any help or hints to solve the problem. Many thanks in advance.