Ask Your Question

puppetlabs-catalog_preview not working [closed]

asked 2017-10-19 05:53:34 -0600

cler gravatar image

Hello guys,

I have installed a Puppet master to run the catalog_preview tool to migrate my code and it doesn't work or I am doing sth wrong,

CentOS Linux release 7.3.1611
puppet 3.8.7
ruby 2.0.0p648

So I installed the puppetlabs-catalog_preview module and when I execute
puppet preview I get
Error: Unknown Puppet subcommand 'preview' See 'puppet help' for help on available puppet subcommands
The module is installed in /etc/puppet/modules and in my puppet.conf file basemodulepath = /etc/puppet/modules Can anyone help?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by cler
close date 2017-10-20 01:50:41.606823

2 Answers

Sort by » oldest newest most voted

answered 2017-10-20 01:49:58 -0600

cler gravatar image

So as it turns out I didn't have an environment named production. And when I executed
puppet config print modulepath

Output was nothing.
I added an environment production, and in its environment.conf modulepath=/etc/puppet/modules:/etc/puppet/environments/production/modules
So now when I execute
puppet config print modulepath
I get
The it can find the module. Which I really don't get it is then what is the point of having basemodulepath if it doesn't really work as setting a global path for all environments and the need of having a one environment named production.

edit flag offensive delete link more

answered 2017-10-19 10:36:31 -0600

ramkrishnayadav gravatar image

puppet preview takes an argument. refer to preview command help puppet preview --help puppet preview --schema --help

More options

edit flag offensive delete link more


I know but even with arguments it doesn’t work. it doesn’t recognize the preview part of the command. I try to uninstall the catalog preview module and it says it is not installed. But in fact it is. It is installed in the basemodulepath. Puppet is just no able to find it, but don’t know the reason

cler gravatar imagecler ( 2017-10-20 00:11:49 -0600 )edit

Question Tools

1 follower


Asked: 2017-10-19 05:53:34 -0600

Seen: 16 times

Last updated: Oct 20 '17