Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 400 on SERVER: Failed to find ops.mydomain.com via exec: Execution of '/etc/puppet/node.rb ops.mydomain.com' returned 1:
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node ops.mydomain.com: Failed to find ops.mydomain.com via exec: Execution of '/etc/puppet/node.rb ops.mydomain.com' returned 1:
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
I have a nodes manifest from an earlier version of puppet (version 3.4.3) tht used to work well that I tried to include in this version of puppet.
Based on the above error I tried to include the nodes.pp file like this from within the /etc/puppet/node.rb like this.
require 'etc'
require 'net/http'
require 'net/https'
require 'fileutils'
require 'timeout'
include 'manifests/nodes.pp'
And the nodes.pp file is where I said in the node.rb config:
[root@puppet puppet]# ls -l manifests/nodes.pp
-rw-r--r--. 1 root root 4227 Sep 27 17:26 manifests/nodes.pp
And I'm still getting the error I show you above. The thought occurred to me that I don't really recognize the format of the node.rb file. Is this new? It doesn't seem like you would enter your node definitions into this file.
I also tried including my nodes.pp file by including it in the site.pp file like this:
[root@puppet puppet]# cat manifests/site.pp
# Empty site.pp required (puppet #15106, foreman #1708)
include 'nodes.pp'
And when I tried to add the puppet client I saw this error after doing a puppet agent --test --waitforcert 60
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class nodes.pp for ops.mydomain.com on node ops.mydomain.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Thanks for any clarification you can provide!
Tim
I've always used import, not include to get my node definitions into site.pp. the new way of doing it, I believe, is to use a manifest directory. See https://docs.puppetlabs.com/puppet/latest/reference/lang_import.html
I've always used import, not include to get my node definitions into site.pp. the new way of doing it, I believe, is to use a manifest directory. See https://docs.puppetlabs.com/puppet/latest/reference/lang_import.html
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c47e599b-71e7-42df-b6c1-2543e2caf5f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I've always used import, not include to get my node definitions into site.pp. the new way of doing it, I believe, is to use a manifest directory. See https://docs.puppetlabs.com/puppet/latest/reference/lang_import.html
Hello,When I tried adding a node to my puppet server running puppet 3.7.1 (on both server and the client) I'm getting an error stating that puppet can't find the node definition:Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 400 on SERVER: Failed to find ops.mydomain.com via exec: Execution of '/etc/puppet/node.rb ops.mydomain.com' returned 1:
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node ops.mydomain.com: Failed to find ops.mydomain.com via exec: Execution of '/etc/puppet/node.rb ops.mydomain.com' returned 1:
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
I have a nodes manifest from an earlier version of puppet (version 3.4.3) tht used to work well that I tried to include in this version of puppet.
Based on the above error I tried to include the nodes.pp file like this from within the /etc/puppet/node.rb like this.