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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Thank you. Now it''s work. But why in documentation is nothing about it? Leonid S. Batizhevsky On Thu, Nov 11, 2010 at 12:02, luke.bigum <luke.bigum@fasthosts.co.uk> wrote:> Try rename: > > modules/postgresql/ > > to: > > modules/postgres/ > > so it matches the name of your class. >-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Leonko <the.leonko@gmail.com> writes: I think it is mentioned obliquely a few times, but there certainly isn''t anywhere super-obvious that explains this feature of manifest auto-loading. It would be great if you could file a bug report about that, so that this can be fixed and avoid someone else hitting the same issue: http://projects.puppetlabs.com/projects/puppet Regards, Daniel> Thank you. Now it''s work. But why in documentation is nothing about it? > > On Thu, Nov 11, 2010 at 12:02, luke.bigum <luke.bigum@fasthosts.co.uk> wrote: >> Try rename: >> >> modules/postgresql/ >> >> to: >> >> modules/postgres/ >> >> so it matches the name of your class. >>-- ✣ Daniel Pittman ✉ daniel@rimspace.net ☎ +61 401 155 707 ♽ made with 100 percent post-consumer electrons -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Problem is solved. Leonid S. Batizhevsky On Thu, Nov 11, 2010 at 22:00, Patrick <kc7zzv@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-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Nov 11, 2:15 am, Daniel Pittman <dan...@rimspace.net> wrote:> Leonko <the.leo...@gmail.com> writes: > > I think it is mentioned obliquely a few times, but there certainly isn''t > anywhere super-obvious that explains this feature of manifest auto-loading.Yes, +1 to an issue for documenting it. That said #5044 is the best explanation of how autoloading currently works that I''ve seen. -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Thu, Nov 11, 2010 at 6:43 PM, donavan <donavan@desinc.net> wrote:> On Nov 11, 2:15 am, Daniel Pittman <dan...@rimspace.net> wrote: >> Leonko <the.leo...@gmail.com> writes: >> >> I think it is mentioned obliquely a few times, but there certainly isn''t >> anywhere super-obvious that explains this feature of manifest auto-loading. > > Yes, +1 to an issue for documenting it. That said #5044 is the best > explanation of how autoloading currently works that I''ve seen.This is a little embarrassing... but I can''t find an authoritative doc on manifest auto-loading either. http://projects.puppetlabs.com/issues/5284 I''ve filed this. We''ve got our new tech writer starting this week, and we''ll be spending a fair bit of time on bringing sanity to our docs and documenting workflows, not just references. *Please* file documentation bugs on areas you know need improvement. http://projects.puppetlabs.com/projects/puppet-docs> > -- > 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+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > >-- Nigel Kersten - Puppet Labs - http://www.puppetlabs.com -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Possibly Parallel Threads
- Who maintains php-pgsql package? I want to ask about using PostgreSQL 8.4 library instead of PostgreSQL 8.1.
- Unable to import a manifest file from a different directory to the one where site.pp is located using environments
- require service started at another node
- failed to retrieve certificate on Amazon EC2
- centos add user failed