hunner/hunner-hiera — pull request #6 by dgoodlad (2013-07-31 12:15:21+00:00)
Title: Allow arbitrary YAML config

By passing a string to the `extra_config` parameter you can add a custom fragment to the end of the config file.

We use this to configure the [gpg backend](https://github.com/envato/hiera-gpg), for example:

```puppet
class { 'hiera':
backends => ['gpg', 'yaml'],
extra_config => '
:gpg:
:datadir: /etc/puppet/environments/%{::environment}/hiera
:keydir: /var/lib/puppet/gpg'
# ...
}
```