Hi: I have something like this: class xinetd { ... some Puppet code ... class xinetd::telnet { ... some Puppet code ... } } node ''host1'' { include xinetd::telnet } However, when running Puppet says it can''t find class xinetd::telnet. I can include xinetd so I know my site.pp correctly includes all .pp files. I am running Puppet 2.6.0. Thanks -- 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 Dec 27, 2010, at 8:11 PM, cyrus wrote:> Hi: > > I have something like this: > > class xinetd { > > ... some Puppet code ... > > class xinetd::telnet { > ... some Puppet code ... > } > } > > node ''host1'' { > include xinetd::telnet > } > > However, when running Puppet says it can''t find class xinetd::telnet. > I can include xinetd so I know my site.pp correctly includes all .pp > files.This is the standard way to do it. Does that answer your question? class xinetd { } class xinetd::telnet { } node ''host1'' { include xinetd::telnet } -- 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 Mon, Dec 27, 2010 at 8:17 PM, Patrick <kc7zzv@gmail.com> wrote:> > > On Dec 27, 2010, at 8:11 PM, cyrus wrote: > >> Hi: >> >> I have something like this: >> >> class xinetd { >> >> ... some Puppet code ... >> >> class xinetd::telnet { >> ... some Puppet code ... >> } >> } >> >> node ''host1'' { >> include xinetd::telnet >> } >> >> However, when running Puppet says it can''t find class xinetd::telnet. >> I can include xinetd so I know my site.pp correctly includes all .pp >> files. > > This is the standard way to do it. Does that answer your question? > > class xinetd { > } > > class xinetd::telnet { > } > > node ''host1'' { > include xinetd::telnet > }It sounds like you might not have the class defined in a location that the autoloader can find it in ? If you''re not using modules, I highly suggest you look at them, in that case I like the autoloader convention of: modulepath/xinetd/manifests/init.pp (class xinetd) modulepath/xinetd/manifests/telnet.pp (class xinetd::telnet)> > -- > 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 28 December 2010 09:41, cyrus <matthewceroni@gmail.com> wrote:> Hi: > > I have something like this: > > class xinetd { > > ... some Puppet code ... > > class xinetd::telnet { > ... some Puppet code ... > } > } > > node ''host1'' { > include xinetd::telnet > } >Doesn''t that mean you''ve declared xinetd and xinetd::xinetd::telnet? I think you want: class xinetd { ... class telnet { ... } ... } (which gives you xinetd and xinetd::telnet) -Naresh V. -- 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.
Ah, that is it. Simple typo on my part. Thanks for pointing that out. Much appreciated. On Dec 27, 10:50 pm, Naresh V <nares...@gmail.com> wrote:> On 28 December 2010 09:41, cyrus <matthewcer...@gmail.com> wrote: > > > > > > > > > > > Hi: > > > I have something like this: > > > class xinetd { > > > ... some Puppet code ... > > > class xinetd::telnet { > > ... some Puppet code ... > > } > > } > > > node ''host1'' { > > include xinetd::telnet > > } > > Doesn''t that mean you''ve declared xinetd and xinetd::xinetd::telnet? > I think you want: > > class xinetd { > ... > class telnet { > ... > } > ... > > } > > (which gives you xinetd and xinetd::telnet) > > -Naresh V.-- 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.