When trying to use hiera-eyaml-gpg, I did not see a valid way to set the --homedir option for the gpg command to use the keyring stored in $confdir/keys/gpg so that I could import public keys to puppet servers using hiera-eyaml-gpg.
This adds a new parameter for gpg_home that sets --homedir for gpg commands, only if the parameter has a value. The existing behavior is used if gpg_home has no value.
When trying to use hiera-eyaml-gpg, I did not see a valid way to set the --homedir option for the gpg command to use the keyring stored in $confdir/keys/gpg so that I could import public keys to puppet servers using hiera-eyaml-gpg.
This adds a new parameter for gpg_home that sets --homedir for gpg commands, only if the parameter has a value. The existing behavior is used if gpg_home has no value.