Ask Your Question
0

Classes in Modulepath gives error.

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

paragdj gravatar image

Hi,

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
1

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

JohnsonEarls gravatar image

Modules have a specific directory layout that must be followed:

/etc/puppetlabs/.../modules/sshdconfig
                                      /manifests
                                                /init.pp

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

edit flag offensive delete link more

Comments

That worked .! Thanks

paragdj gravatar imageparagdj ( 2015-05-05 01:02:41 -0500 )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

Stats

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

Seen: 48 times

Last updated: May 04 '15