dgolja / golja-gnupg

Puppet module for managing GnuPG package and public keys
Apache License 2.0
13 stars 46 forks source link

Allow key content #4

Closed tobyclemson closed 9 years ago

tobyclemson commented 9 years ago

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.

dgolja commented 9 years ago

tnx again !!! Cool feature :100:

Will review it, run the system tests and if everything is fine I will merge it :)

dgolja commented 9 years ago

Both PR merged and I just released the new version into the forge. Thank you again for the PR.