parsing hiera to get portion of deeply nested data structures
Given this hiera file:
--- lvm::volume_groups: vgdata4: physical_volumes: - /dev/sdc logical_volumes: varextra1: size: 11G mountpath: /var/extra1 mountpath_require: true fs_type: xfs vgdata5: physical_volumes: - /dev/sdd logical_volumes: varextra2: size: 21G mountpath: /var/extra2 mountpath_require: true fs_type: ext4
I would like to extract the mountpath in my puppet plan. I've tried some variants i've found with examples, but with no result. I like a list of mountpaths to loop through and create directories if needed. I have to confess that this part of puppet is new to me: create_resources and complex data structures...