duritong / puppet-trocla

puppet integration for trocla
11 stars 18 forks source link

does this support hierarchical keys? #7

Closed anarcat closed 9 years ago

anarcat commented 9 years ago

could there be a system by which you'd have a "system-wide" password then host-specific ones?

i'm thinking of something like trocla([$fqdn, 'default'])...

duritong commented 9 years ago

At the moment not, but I would certainly merge such a patch.

ATM I'm more thinking about a more general way to integrate it with hiera, but I haven't yet seen a good and straight forward way. Trocla doesn't really match the mental model of hiera.

But, if you see a way to add your idea and have a patch for it: Just do it.

I usually do something like trocla("mypassword_${::fqdn}",'plain'), which doesn't include a fallback, but trocla anyways just generates a new password.