[Puppet Users] Re: Could not find class

luke.bigum
2010-12-16T09:58:49Z

That github link doesn''t work for me so don''t know the
internals of
this module, but if the module is called "rsync", as indicated by this
module path: /etc/puppet/modules/rsync/, then any sub classes of that
should be in the rsync namespace... Are you sure it''s not supposed to
be rsync::rsyncd?

A base class called ''rsyncd'' would mean there''d be a
module etc/puppet/
modules/rsync/rsyncd/, not a "rsyncd.pp" under the rsync module...
What you''ve shown of this module''s structure looks quite
strange to
me.

On Dec 16, 1:48 am, Dmytro Bablinyuk <bablin...@gmail.com>
wrote:
> Hi Everybody,
>
> I am sure that I am missing something very obvious,
>
> I have installed rsync package
>
> git clonehttps://github.com/camptocamp/puppet-rsyncd.gitrsync
>
> The path
>
> root@puppet-master:/etc/puppet/modules/rsync/manifests/classes# ls -l
> total 4
> -rw-r--r-- 1 root root 1078 2010-12-16 09:54 rsyncd.pp
>
> The manifest file
>
> package { ["rsync", "xinetd"]: ensure => present }
> service { "xinetd": ensure => running }
>
> include rsyncd
>
> rsyncd::export { "etc":
>     path => "/etc",
>     chroot => true,
>     gid => "staff",
>     allow => ["172.16.50.4", "172.16.41.10"],
>
> }
>
> I have error on the client
>
> root@puppet-client-ubuntu:~# puppetd --test
> info: Retrieving plugin
> err: Could not retrieve catalog from remote server: Error 400 on
> SERVER: Could not find class rsyncd at /etc/puppet/manifests/site.pp:
> 33 on node puppet-client-ubuntu.harbour
> warning: Not using cache on failed catalog
> err: Could not retrieve catalog; skipping run
>
> How do I specify path to the rsyncd class?
>
> Thank you
> Dmytro