Problem is solved.

Leonid S. Batizhevsky



On Thu, Nov 11, 2010 at 22:00, Patrick <kc7...@gmail.com> wrote:
>
> On Nov 11, 2010, at 12:54 AM, Leonko 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?
>
> Run this command as root.  What is the output?
> puppet --genconf | grep "confdir ="
>
> What is the absolute path to the modules directory?
>
> What is the absolute path to puppet.conf?
>
> Are you using environments?
>
> --
> 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.
>
>

-- 
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