Problem: I get this error when i restart puppet or do anything with the agent:
[root@cm ~]# /opt/puppetlabs/bin/puppet agent --test
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Facter: error while resolving custom facts in /opt/puppetlabs/puppet/cache/lib/facter/root_home.rb: /opt/puppetlabs/puppet/cache/lib/facter/root_home.rb:43: syntax error, unexpected '.'
str&.split("\n")&.each do |line|
^
/opt/puppetlabs/puppet/cache/lib/facter/root_home.rb:43: syntax error, unexpected '.'
str&.split("\n")&.each do |line|
^
Info: Caching catalog for hostname.com
Info: Applying configuration version '1618845875'
Notice: Applied catalog in 0.15 seconds
Expected outcome:
Fix the error or understand it can be ignored
Foreman and Proxy versions:
foreman-proxy-1.20.3-1.el7.noarch
foreman-1.20.3-1.el7.noarch
Foreman and Proxy plugin versions:
how do i get this?
Distribution and version:
CentOS Linux release 7.9.2009 (Core)
Other relevant data:
A snip from root_home.rb including like 43:
Facter.add(:root_home) do
confine kernel: :aix
root_home = nil
setcode do
str = Facter::Util::Resolution.exec('lsuser -c -a home root')
str&.split("\n")&.each do |line|
next if %r{^#}.match?(line)
root_home = line.split(%r{:})[1]
end
root_home
end
end
This is a relatively new install. I have a few repos setup, 1 non-working test client. I used the below to install:
foreman-installer --scenario katello --foreman-admin-username āfadminā --katello-proxy-port 3128 --katello-proxy-url http://x.x.x.x --foreman-proxy-bind-host ā*ā
I started to setup custom certs and noticed the error. I rolled back to before and still have the error.
Thank you for any help!