Migration problem to Puppetserver V5

27 views
Skip to first unread message

markus...@neulion.com

unread,
Oct 9, 2017, 11:36:46 AM10/9/17
to Puppet Users
Hi all,

we are using puppet open source already for quite a while and now i am trying to migrate our existing code base to latest puppet server.
However i am continously running into the same issue and can not yet figure out whats wrong as the same code seems to be running fine in pre V5 puppet.

We provide each of our machine types usually with its own puppet module handling the setup of all the sub module, which for simplictly looks similar to the below code in modules init.pp:

class test {

include abc

}


and then within the same directory we would have a file called abc.pp defining a corresponding class abc.pp
If i then do a node including that module for a certain machine

node 'node-1' {

include test

}


I instantiated the new version of the puppet server via docker and my node does connect just fine, but i do always get an error message about being unable to load the catalog:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: {"message":"Server Error: Evaluation Error: Error while evaluating a Function Call, C
ould not find class ::abc for node-1.xxx.xxx at /etc/puppetlabs/code/environments/production/modules/test/manifests/init.pp:47:1 on
 node node-1","issue_kind":"RUNTIME_ERROR"}
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Can someone please point me in the right direction, as this structure was and is working fine with older versions include 1.x Versions of puppetserver. 

Thanks,

Markus Kramer

Chuck

unread,
Oct 9, 2017, 3:40:48 PM10/9/17
to Puppet Users
If I understand what you are saying you need.

include test::abc

Reply all
Reply to author
Forward
0 new messages