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
> statements if you get the syntax right:
>
> case $operatingsystem: {
> 'RedHat', 'CentOS' : {
> case $kernelmajorversion: {
> '6.1' : { ... }
> '6.2' : { ... }
> }
> }
> }
>
> John
>
Thanks John,
I ran into your answer via a Google search and was able to get nested case
statements working properly. The code can become quite verbose, but that's
not necessarily a bad thing. :)
Regards, Martijn
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.