Try rename:

modules/postgresql/

to:

modules/postgres/

so it matches the name of your class.

On Nov 11, 8:54 am, Leonko <the.leo...@gmail.com> wrote:
> Hello. I use puppet 2.6.3-rc2
> Now I try move my classes to modules.
> But I got a problem that Puppet does not sees modules.
>
> in puppet.conf:
>
> [main]
>     logdir = /var/log/puppet
>     rundir = /var/run/puppet
>     ssldir = $vardir/ssl
>     libdir = /opt/puppet-dashboard/lib/puppet
>     modulepath=$confdir/modules
>
> In nodes :
>
> node postgres {
>         include basesystem
>         include postgres
>
> }
>
> In modules/postgresql/manifests/init.pp :
> class postgres {
>         $packagelist = ["postgresql84", "postgresql84-server",
> "postgresql84-libs", "postgresql84-contrib"]
>
>         package { "$packagelist":
>                 ensure          => "installed",
>         }
>
>         service { "postgresql":
>                 enable => true,
>                 ensure => running,
>                 hasstatus => true,
>                 require => Package["postgresql84-server"],
>                 restart => true,
>         }
>
> }
>
> But when I try to apply this I get:
>
> err: Could not retrieve catalog from remote server: Error 400 on
> SERVER: Could not find class postgres at /etc/puppet/manifests/nodes/
> db.pp:4 on node postgres.comsoft
>
> What's my mistake?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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