Resource Type: yumrepo_metadata_key

Defined in:
lib/puppet/type/yumrepo_metadata_key.rb
Providers:
yum
dnf4
dnf5

Summary

Manage a GPG key in a repository's metadata keystore (repo_gpgcheck=1).

Overview

Manage a GPG key in a repository’s metadata keystore (repo_gpgcheck=1). Title must be “<repo>:<fingerprint>”, identified by the PRIMARY fingerprint.

On systems running ‘dnf` version `5`, `python3-libdnf5` must be installed before this type can be used.

‘repo` and `fingerprint` are derived from the title and should not be set independently.

Examples:

Add a key for the ‘updates` repository

yumrepo_metadata_key { 'updates:3B49DF2A0F5E6E4F7A1B2C3D4E5F60718293A4B5':
  ensure  => present,
  content => file('profile/gpg_metadata_keys/updates.key'),
}

Properties

  • content

    ASCII-armored public key.

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent

Parameters

  • fingerprint

    Primary fingerprint (derived from the title).

  • name (namevar) (defaults to: '')

    Composed as “<repo>:<fingerprint>”.

  • provider

    The specific backend to use for this ‘yumrepo_metadata_key` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.

  • repo

    Repository id (derived from the title).