Ask Your Question

Classes in Modulepath gives error.

asked 2015-05-04 06:34:20 -0600

paragdj gravatar image


The modulepath /etc/puppetlabs/puppet/Environmet/production/{manifests,modules} in Modules made a folder sshdconfig made a file called init.pp in sshdconfig Made a class in init.pp

class sshdconfig { service { 'sshd': ensure => 'stopped' } }

Nodes are defined in site.pp and with a include sshdconfig but it gives an error on the agent saying class sshdconfig not defined on agenthost

The class if mentioned in site.pp it works perfectly fine. What am i doing wrong.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-05-04 14:57:37 -0600

JohnsonEarls gravatar image

Modules have a specific directory layout that must be followed:


Please see the Module Layout documentation and the Beginner's Guide to Modules for more details.

edit flag offensive delete link more


That worked .! Thanks

paragdj gravatar imageparagdj ( 2015-05-05 01:02:41 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-05-04 06:34:20 -0600

Seen: 52 times

Last updated: May 04 '15