Gpg Facts

gpg_key

host.fact.gpg_key(src)

Returns information on one or more GPG keys found in a file or URL.

{
    'KEY-ID': {
        'length': 4096,
        'uid': 'Oxygem <hello@oxygem.com>'
    },
    ...
}

gpg_keys

host.fact.gpg_keys(keyring=None)

Returns information on all public keys in a keychain.

{
    'KEY-ID': {
        'length': 4096,
        'uid': 'Oxygem <hello@oxygem.com>'
    },
    ...
}

gpg_secret_keys

host.fact.gpg_secret_keys(keyring=None)

Returns information on all secret keys in a keychain.

{
    'KEY-ID': {
        'length': 4096,
        'fingerprint': 'ABC',
        'uid': 'Oxygem <hello@oxygem.com>'
    },
    ...
}