Re: [Puppet Users] Nested class not working

2012-12-05 Thread jcbollinger
On Tuesday, December 4, 2012 9:25:04 PM UTC-6, Navid Paya wrote: > > OK, that makes sense. Thanks for the tip. Gotta go do some reading. The > thing is this very same manifest used to work under puppet 2.6. > No, I'm sure it didn't. None of the relevant characteristics of Puppet have change

Re: [Puppet Users] Nested class not working

2012-12-05 Thread jcbollinger
On Tuesday, December 4, 2012 9:21:53 PM UTC-6, Gary Larizza wrote: > > It's a bit deeper than that, > > Nesting a class definition inside of a class definition will result in a > class namespaced as first_class::second_class. > That is, nesting will result *only* in a class *definition* namesp

Re: [Puppet Users] Nested class not working

2012-12-04 Thread Navid Paya
OK, that makes sense. Thanks for the tip. Gotta go do some reading. The thing is this very same manifest used to work under puppet 2.6. If there's one thing I really don't like about puppet it's the amount of change although I understand it's needed for a product under such heavy development.

Re: [Puppet Users] Nested class not working

2012-12-04 Thread Gary Larizza
It's a bit deeper than that, Nesting a class definition inside of a class definition will result in a class namespaced as first_class::second_class. Because of this, you'll need to "include mock::my_file" in your node declaration. It's recommended to keep one class definition per file and to fol

Re: [Puppet Users] Nested class not working

2012-12-04 Thread José Juan Montes
i > I am trying to use nested classes but for whatever reason it doesn't work. > Here's my site.pp file: > > include stdlib > include apt > node 'zenoss.example.com' { > include mock > } > class mock { > class my_file { > file { '/tmp/test': > ensure => present, > content => "

[Puppet Users] Nested class not working

2012-12-04 Thread Navid Paya
Hi I am trying to use nested classes but for whatever reason it doesn't work. Here's my site.pp file: include stdlib include apt node 'zenoss.example.com' { include mock } class mock { class my_file { file { '/tmp/test': ensure => present, content => "Just testing to see if '

Re: [Puppet Users] Nested Class

2010-12-27 Thread Naresh V
On 28 December 2010 09:41, cyrus 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

Re: [Puppet Users] Nested Class

2010-12-27 Thread Nigel Kersten
On Mon, Dec 27, 2010 at 8:17 PM, Patrick 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' { >>     in

Re: [Puppet Users] Nested Class

2010-12-27 Thread Patrick
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

[Puppet Users] Nested Class

2010-12-27 Thread cyrus
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.p