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.


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




-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAOZy0ekHow_OWgyfUv7rw2eqTeBwt-GVzOVNyj-ga%2BX3pokR7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to