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 that into a test.pp. replace "code" with a notify, and then run "puppet apply test.pp" you'll be able to find out really quickly if it will work or not.
That being said, i haven't tried it, but a quick look at http://docs.puppetlabs.com/puppet/3/reference/lang_conditional.html#case-statements indicates it probably won't work. > Thanks. > -- 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.