Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

merging arrays with the same key

$
0
0
Heya - i've got these in hiera: profiles::apache::vhosts::vhostsappcommon : - docroot: /a/path docroot_owner : a user docroot_group : a group docroot_mode : 'a mode' log_level: debug ip_based: true headers : - unset somethingspecific and: profiles::apache::vhosts::vhostscommon: - options : ['FollowSymLinks','MultiViews'] headers: - unset something - edit somethingelse - always append something - set somethingelse - set somethingmore request_headers: - set blah - set blah blah ssl_protocol : -all +TLSv1.2 now i need to merge these two things to make one default apache config. The question is how do i merge these 2 things successfully so that the nested hash request_headers includes all values from both arrays. All the merges i've tried so far ditches everything in favour of the right most array's request_headers values, as per deep_merge's documentation. Thanks!

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>