How can I force to reload hiera values?

In my puppet script, I've got several steps. In one step, I change some values in my hiera.yaml.
But I've got an issue, because the hiera values are loaded at the beging of my puppet script, I don't get the updated value...

How can I force the update of hiera values after a specific step in my puppet script?

3 Answers

Hiera's configuration, hiera.yaml, is not meant to be managed with Puppet. If you are automating the deployment of puppet masters, I would recommend that you keep hiera in a version controlled repository and check that out on your puppet masters as part of their bootstrap process.