Migration problem to Puppetserver V5

asked 2017-10-11 06:15:13 -0600

updated 2017-10-11 09:43:22 -0600

DarylW gravatar image

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.



edit retag flag offensive close merge delete


Were you upgrading from puppet3 or puppet4? I believe that include was deprecated in the move from 3->4, but the puppet docs aren't working right now. https://tickets.puppetlabs.com/browse/DOCUMENT-101

DarylW gravatar imageDarylW ( 2017-10-11 09:22:12 -0600 )edit