dgolja / golja-gnupg

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

(#7) Add fact that indicates if gpg is installed or not #8

Closed edestecd closed 9 years ago

edestecd commented 9 years ago

This adds two facts. One indicates the exe path for gpg, if installed. The other indicates if gpg is installed.

carlossg commented 9 years ago

will the fact be true in a server that doesn't have gpg installed but is installing it in the same puppet run? I had that issue before

edestecd commented 9 years ago

@carlossg you are correct it will not work if you want to install gpg and the key in one install. If you want to only install the key if gpg is installed, you would need to make your condition this fact or class { '::gnupg': } is defined.

if defined(Class['::gnupg']) or $::gnupg_installed {
  gnupg_key { 'name': }
}
carlossg commented 9 years ago

+1

dgolja commented 9 years ago

sorry i though that at the end we didnt need this feature, but sure if you need it I can release the new module this weekend.

carlossg commented 9 years ago

@n1tr0g This would be necessary for ease of use, could you release?

dgolja commented 9 years ago

no worries ... I will release is today/tomorrow.