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 no 
colon) for its 'default' case.  There oughtn't to be a problem nesting case 
statements if you get the syntax right:

case $operatingsystem: {
  'RedHat', 'CentOS' : {
       case $kernelmajorversion: {
          '6.1' : { ... }
          '6.2' : { ... }
       }
  }
}


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to