Re: [Puppet Users] Could not find class

Daniel Piddock
2010-12-16T09:51:50Z

On 16/12/10 01:48, Dmytro Bablinyuk wrote:
> Hi Everybody,
>
> I am sure that I am missing something very obvious,
>
> I have installed rsync package
>
> git clone https://github.com/camptocamp/puppet-rsyncd.git rsync
>
> 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?

The "include rsyncd" line causes Puppet to look for
/etc/puppet/modules/rsyncd/manifests/init.pp which you don''t have. Try
renaming the rsync checkout folder to rsyncd.

Dan