[Puppet Users] Arrays and case statements

2014-02-21 Thread Kim Scarborough
So I have a bunch of linux servers in different groups. Each server's group is defined as a custom fact. I want to set an array variable based on the server's group membership, so I have code like this: case $servergroup { MAMMAL: { $foo = ['horse', 'cow', 'dog'] } REPTILE: { $foo =

Re: [Puppet Users] Arrays and case statements

2014-02-21 Thread Eugene Vilensky
On Fri, Feb 21, 2014 at 3:47 PM, Kim Scarborough chow...@gmail.com wrote: Is what I'm trying possible? Am I going about this totally the wrong way? Check out how classifying your data using Hiera can resolve and simplify this: http://docs.puppetlabs.com/hiera/1/index.html#why-hiera -- You

Re: [Puppet Users] Arrays and case statements

2014-02-21 Thread Kim Scarborough
On Friday, February 21, 2014 7:09:43 PM UTC-6, Trammael wrote: Check out how classifying your data using Hiera can resolve and simplify this: http://docs.puppetlabs.com/hiera/1/index.html#why-hiera Wow, that's hard to understand (at least for me). Will that still work with an array in a