Peter Berghold
2011-Nov-12 23:14 UTC
[Puppet Users] Need a second set of eyes... cannot find a class..
In one of my modules I have the following : postfix/ manifests/ conf.pp conf/access-all.pp (as well as the obligatory init.pp and a few others) and the access-all.pp file contains: class postfix::conf::access-all inherits postfix::conf { $hosts = $all_hosts $domains = $all_domains $ips = $all_ips @file { postfix-access-file: path => "/etc/postfix/access", owner => root, group => root, mode => 0644, content => template("postfix/templates/access.erb"), notify => Exec[ hash-access] } exec { hash-access: path=>"/usr/bin:/usr/sbin:/usr/local/bin:/bin:/sbin", cwd => "/etc/postfix", command => "postmap access" } realize File[postfix-access-file] } and yet when I run puppetd on my configured host: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class postfix::conf::access-all for chicweb0.chi.sharkrivertech.com at /etc/puppet/manifests/nodes/chicweb0.pp:2 on node chicweb0.chi.sharkrivertech.com Can anybody spot anything I''m fat fingering? -- Peter L. Berghold Owner, Shark River Technical Solutions LLC -- 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.
Aaron Grewell
2011-Nov-14 05:23 UTC
Re: [Puppet Users] Need a second set of eyes... cannot find a class..
Try removing the hyphen from the class name. If that fixes it then you''ve hit this: http://projects.puppetlabs.com/issues/5268 On Nov 12, 2011 3:14 PM, "Peter Berghold" <salty.cowdawg@gmail.com> wrote:> > In one of my modules I have the following : > > postfix/ > manifests/ > conf.pp > conf/access-all.pp > (as well as the obligatory init.pp and a few others) > > and the access-all.pp file contains: > > class postfix::conf::access-all inherits postfix::conf { > $hosts = $all_hosts > $domains = $all_domains > $ips = $all_ips > > @file { > postfix-access-file: > path => "/etc/postfix/access", > owner => root, group => root, mode => 0644, > content => template("postfix/templates/access.erb"), > notify => Exec[ hash-access] > } > exec { > hash-access: > path=>"/usr/bin:/usr/sbin:/usr/local/bin:/bin:/sbin", > cwd => "/etc/postfix", > command => "postmap access" > } > realize File[postfix-access-file] > > } > > > and yet when I run puppetd on my configured host: > > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Could not find class postfix::conf::access-all for > chicweb0.chi.sharkrivertech.com at > /etc/puppet/manifests/nodes/chicweb0.pp:2 on node > chicweb0.chi.sharkrivertech.com > > Can anybody spot anything I''m fat fingering? > > > -- > Peter L. Berghold > Owner, Shark River Technical Solutions LLC > > -- > 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.
Peter Berghold
2011-Nov-14 14:38 UTC
Re: [Puppet Users] Need a second set of eyes... cannot find a class..
On Mon, Nov 14, 2011 at 12:23 AM, Aaron Grewell <aaron.grewell@gmail.com>wrote:> Try removing the hyphen from the class name. If that fixes it then you''ve > hit this: > http://projects.puppetlabs.com/issues/5268 > >It would appear that was the case. Surprised that I didn''t run into this before. I actually ended up doing something that I was not originally planning to do and that is recreate the class as postfix::config::access::all which is how I define a generic "smarthost" for all the hosts on my network to talk to. -- Peter L. Berghold Owner, Shark River Technical Solutions LLC -- 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.