Brain Dump: Automated Parameter Lookups in Hiera aren't hard...
But I certainly made them that way.
To cut to the chase, I’m using a nodeless site manifest that looks kind of like this:
This works quite well and lets me use Hiera as a sort-of pseudo-ENC. My hiera.yaml
is straightforward, as are my hierarchies. The issue I was having came from a misunderstanding of Automated Parameter Lookups in Puppet 3.x (3.6, if you want to be specific). Essentially, I was trying to convert code similar to this in my old site.pp:
into something akin to this in the YAML:
What caused me such great consternation (and delayed resolution of the problem for much longer than I’d like to admit) was simply the fact that PostgreSQL did, in fact, install fully. I had to eventually realize that the password was not being set correctly before I began investigating the possibility that I was not as savvy with automated parameter lookup as I had hoped.
For anyone in a similar situation, here’s the correct format for the above example:
Fixed!