Closed tobyclemson closed 9 years ago
tnx again !!! Cool feature :100:
Will review it, run the system tests and if everything is fine I will merge it :)
Both PR merged and I just released the new version into the forge. Thank you again for the PR.
Note: I based this PR off #3 to make it easier to merge. I can rebase it if necessary.
This pull reques adds a key_content parameter to the gnupg_key type so that the content can be provided as a string. This is useful when the key is stored as a hiera property and the consumer doesn't want to have to write that content to a file before the gnupg_key resource executes.
It also allows private keys to be stored in hiera using one of the encrypted hiera backends such as hiera-eyaml or hiera-gpg.
The content is validated as armored public or private key as part of the type definition.
I've added specs and beaker tests.