I'm doing my best to follow all the instructions on the puppet and foreman
websites and wikis. I believe I have most of it working - the webUI is
good, the puppetserver is talking to clients. The main issue is that the
clients get:
[root@lnx246 ~]# puppet agent -t
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 500 on SERVER: {"message":"Server Error: Failed to find lnx246 via exec: Execution of '/etc/puppetlabs/puppet/node.rb lnx246' returned 1: ","issue_kind":"RUNTIME_ERROR"}
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: {"message":"Server Error: Failed when searching for node lnx246: Failed to find lnx246.classe.cornell.edu via exec: Execution of '/etc/puppetlabs/puppet/node.rb lnx246' returned 1: ","issue_kind":"RUNTIME_ERROR"}
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Running node.rb on the CLI gives:
sudo -u puppet /etc/puppetlabs/puppet/node.rb puppet.node.fqdn
Permission denied - /etc/puppetlabs/puppet/yaml
There is no file called yaml, nor am I at all certain why node.rb would be
looking for that file. I feel like there's a small piece of configuration
that is needed to get it all working right. I did set in the foreman proxy
settings the current version of puppet, 4.8.1 replacing 3.8.7 so foreman
should know it's a newer version… The clients are still 3.8.7, but I put
the legacy support flags in auth.conf as suggested. However, given that the
agents can get far enough to request an ENC lookup, I don't think it's a
failure at the level of v3 agent -> v4 server and I'm pretty sure that also
means the server can find the ssl certs. So I think this is related to the
ENC config for foreman's node.rb . . .
Help?