On Mon, Dec 27, 2010 at 8:17 PM, Patrick <kc7...@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-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