Hi,

I am having trouble getting puppet to find a class thats defined in
one of the modules.I have a module/folder called 'webserver' in /etc/
puppet/modules/, which has a init.pp file with the below content

class webserver{
file {'test.txt':
        path => '/etc/test.txt',
        ensure => present,
        mode => 0640,
        source => "puppet:///webserver/test.txt"
     }
}

I have a nodes.pp file with

node basenode {
        include webserver
}

node 'puppet-client02.eng.xyz.com'inherits basenode {
}

node 'puppet-client.eng.xyz.com'inherits basenode  {


And the site.pp, file has

-SNIP-
import "modules"
import "nodes"
-SNIP-

when I run the puppet on the client i get an error message:

err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of
resource: Could not retrieve information from source(s) puppet://puppet/plugins
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Could not find class webserver at /etc/puppet/manifests/
nodes.pp:3 on node puppet-client.eng.xyz.com
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run


Whats wrong here?, why cant puppet find the class 'webserver', i have
checked with puppet--chkconfig modulepath, and the path is /etc/puppet/
modules

Help!

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to