puppetlabs/hiera — pull request #123 by brunoleon (2013-03-06 10:24:19+00:00)
Title: Interpolate hash keys like already done for strings.

The needs for this appeared while using create_resources(), which
expects a hash, and takes hash keys as resources titles.
When using hiera, hash keys where not interpolated before this
patch.

You can now write this into hiera and have %{hostname} properly replaced by its facter value:

bacula::job:
%{hostname}_Cyrus:
fileset: MailServer
bacula_schedule: 'CycleStandard'
%{hostname}_LDAP:
fileset: LDAP
bacula_schedule: 'CycleStandard'