On Thursday, December 20, 2012 5:34:25 PM UTC-6, Kevin Kitchen wrote:
>
> [...] When I run puppet agent --test on the agent side it comes back
> with: err: Could not retrieve catalog from remote server: Error 400 on
> SERVER: Could not find class java for puppet-node1 on node puppet-node1
> warning: Not using cache on failed catalog
> err: Could not retrieve catalog; skipping run
>
> What is different here?
>
Your "java" class is not located where the parser's autoloader expects to
find it. Puppet will interpret a top-scope name such as "java" as a module
name, and therefore look for the class definition in the module's init.pp.
That would be <module-path>/java/manifests/init.pp in this case, which
would contain
class 'java' {
# ...
}
Other classes in the same module would have names of the form java::foo,
and the autoloader would look for them in (in this case)
<module-path>/java/manifests/foo.pp.
There's more, but the above will cover the vast majority of your needs.
John
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/S8AYkr9oRJsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.