[Puppet Users] Re: Nested case

2013-10-25 Thread Martijn
Op maandag 25 maart 2013 14:01:11 UTC+1 schreef jcbollinger: > > > The code you posted would not work, because the outer case statement is > incomplete. Also, the inner case statement has no code block (and no > colon) for its 'default' case. There oughtn't to be a problem nesting case > state

[Puppet Users] Re: Nested case

2013-03-25 Thread jcbollinger
On Friday, March 22, 2013 8:40:20 AM UTC-5, Dragos R wrote: > > Thanks, > > Its not mentioned and I tried, did not work. > > No problem, if's are ok too. > > The code you posted would not work, because the outer case statement is incomplete. Also, the inner case statement has no code block (and

[Puppet Users] Re: Nested case

2013-03-22 Thread Dragos R
Thanks, Its not mentioned and I tried, did not work. No problem, if's are ok too. Dragos On Friday, March 22, 2013 3:35:12 PM UTC+2, llowder wrote: > > > > On Friday, March 22, 2013 8:23:31 AM UTC-5, Dragos R wrote: >> >> Can I make use of nested cases like this ? >> >> case $operatingsystem: {

[Puppet Users] Re: Nested case

2013-03-22 Thread llowder
On Friday, March 22, 2013 8:23:31 AM UTC-5, Dragos R wrote: > > Can I make use of nested cases like this ? > > case $operatingsystem: { >case $kernelmajorversion: { > '6.1' : { code } > '6.2' : { code } > default >} > } > > Have you tried? If you put