Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What if you organize your hieradata as a hash, and then contain the logic on what to do with it in your manifest.

For example, something like,

# clientcert yaml:
  - client:
    - key1
# domain yaml:
  - domain:
    - key2

And in the manifest:

$hash = hiera_hash(your_key)
if $hash['client'] { use client }
elsif $hash['domain'] { use domain } 
else { fail }

Something like that?