Manage pgp keys for signed apt packages
This module manages the presence of pgp keys used by apt to verify packages.
(apt-key command & [opts])command
The overall command to execute. Should be one of :list, :present or :absent
:listLists the presently installed pgp keys
:presentEnsure the specified pgp key is present on the machine
:absentEnsure the specified pgp key is absent on the machine
options
A hashmap of options
| Option | Description |
|---|---|
:public-keyrequired truetype string | The contents of the gpg public key. Supply a string in PEM format. |
:public-key-urlrequired truetype string | A URL to download the public key from. Should return the key as it would be supplied to |
:fingerprintrequired truetype string | The gpg key fingerprint of the key to be installed or removed. |
:keyringrequired truetype string | An optional keyring file path to place the key in. |
(apt-key :present {:public-key-url "https://deb.goaccess.io/gnugpg.key"
:keyring "/etc/apt/trusted.gpg.d/goaccess.gpg"
:fingerprint "C03B 4888 7D5E 56B0 4671 5D32 97BD 1A01 3344 9C3D"})(apt-key :absent {:fingerprint "C03B 4888 7D5E 56B0 4671 5D32 97BD 1A01 3344 9C3D"})(apt-key :list)