[Puppet-dev] Re: Hiera Merge

2017-08-10 Thread Henrik Lindberg
On 10/08/17 20:48, ggun wrote: Thanks, but the main point to merge the hash is that the sub hash header value is not fixed in the example I have mentioned as esa-user-profile-service or esa-group-service. It can be anything. I need to make the code free from using direct Key value . So

[Puppet-dev] Re: Hiera Merge

2017-08-10 Thread ggun
Thanks, but the main point to merge the hash is that the sub hash header value is not fixed in the example I have mentioned as esa-user-profile-service or esa-group-service. It can be anything. I need to make the code free from using direct Key value . On Wednesday, August 9, 2017 at 2:24:34

[Puppet-dev] Re: Hiera Merge

2017-08-09 Thread Reid Vandewiele
If you're just trying to transform the data in Puppet code and assuming (as Henrik was) that you can't change how the data is stored, something like this might work. # Assuming $was_data is the hash of data from Hiera $common_data = $was_data.filter |$pair| { $pair[0] != 'was_dmgr_data' }

[Puppet-dev] Re: Hiera Merge

2017-08-09 Thread ggun
Thanks On Tuesday, August 8, 2017 at 7:10:13 PM UTC-4, ggun wrote: > > Hi Experts, > > I have a requirement as below. > I need to create a Hash from below hiera data. > > was_data: > hs3sourcepath: 'glic.binaries/websphere' > hdaresponse_file: /opt/software/WAS8.5.5.10_Install.xml >

[Puppet-dev] Re: Hiera Merge

2017-08-09 Thread Henrik Lindberg
On 09/08/17 01:10, ggun wrote: Hi Experts, I have a requirement as below. I need to create a Hash from below hiera data. was_data: hs3sourcepath: 'glic.binaries/websphere' hdaresponse_file: /opt/software/WAS8.5.5.10_Install.xml hibmagentpath: