Re: [Puppet Users] merge hashes and create_resources

2016-06-06 Thread Henrik Lindberg
vidual File resources define input_node_wrapper ($port, $component) { file { "a_file_for_input_node_${name}": path=> 'somewhere', content => 'some_other_template', } } create_resources('input_node_wrapper', $input

Re: [Puppet Users] merge hashes and create_resources

2016-06-06 Thread Robert Poulson
7; }, > [possibly input4... inputN] > } > $input_merged = merge($input_base, $input_node) > file { 'input_merged_file': > content => template("template_that_uses_input_merged") > } > > #Uses $port and $component params in individual File resources > define inp

Re: [Puppet Users] merge hashes and create_resources

2016-06-06 Thread Luke Bigum
{ file { "a_file_for_input_node_${name}": path=> 'somewhere', content => 'some_other_template', } } create_resources('input_node_wrapper', $input_merged) -- Luke Bigum Senior Systems Engineer Information Systems - Original Message - Fro

Re: [Puppet Users] merge hashes and create_resources

2016-06-05 Thread Henrik Lindberg
On 05/06/16 19:56, Robert Poulson wrote: Dear List, I've been using Puppet for over a year now and I'm quite enjoying it. I've learned some stuff but there is of course always room for improvement. Now I have a task which needs a nicer solution than I'm currently capable of. I have a hash of it

[Puppet Users] merge hashes and create_resources

2016-06-05 Thread Robert Poulson
Dear List, I've been using Puppet for over a year now and I'm quite enjoying it. I've learned some stuff but there is of course always room for improvement. Now I have a task which needs a nicer solution than I'm currently capable of. I have a hash of items with to key/value pairs, which is *the