puppetlabs/hiera — pull request #193 by m4ce (2014-05-24 12:29:54+00:00)
Title: The hierarchy should dynamically grow if an interpolated variable contains an Array type of value

Take the following example:

$roles = ["roleA", "roleB", "roleC"]

environments/%{::environment}/%{::roles}/common

should become:

- environments/%{::environment}/roleA/common
- environments/%{::environment}/roleB/common
- environments/%{::environment}/roleC/common

This pull request is to mainly discuss this feature request. I find it extremely useful in my environment and it allows me to leverage things like Foreman hostgroups etc.