Hiera data is great for separating code and data.
Within hiera one can put different types of variables:
Working with text and arrays is easy for most Puppet users.
Hashes still seem to have some kind of magic.
This post tries to show you an idea on how to work with hashes in hiera.