Re: [Puppet Users] Using hiera to separate code and data

2014-01-22 Thread CD
Hi Felix, Thanks for the information. I used the create_resources and fixed the issue. Further I started using the individual host files as you suggested to make it more manageable. Thanks again for the tips. This is what I finally implemented. (Note: I came across another issue with this imp

Re: [Puppet Users] Using hiera to separate code and data

2014-01-14 Thread Felix Frank
On 01/12/2014 09:15 AM, CD wrote: > 1. hiera($variable) returns a hash but for resource to iterate it > requires and array. Any idea how to convert it to an array Hiera returns whatever it reads from your data file. If your json deserialized to an array, that is what Hiera will return to you. >

[Puppet Users] Using hiera to separate code and data

2014-01-13 Thread CD
Dear users, I am quite new to Puppet and need some help in following scenario. This could be not possible or the way I think might be completely not in line with the Puppet. I believe experts can help me with a solution/suggestion. I am planning to use hiera to specify all variable values for a