Skip to content

Refresh apt::keyring when GPG key expires #1253

@deric

Description

@deric

Use Case

It's not a good practice to use GPG keys with expiration set to never.

However when GPG key from provided url expires:

apt::source { 'puppet8-release':
     location => 'http://apt.puppetlabs.com',
     repos    => 'puppet8',
     key      => {
       name   => 'puppetlabs-keyring.gpg',
       source => 'https://apt.puppetlabs.com/keyring.gpg'
     }
 }

it won't be updated as long a the keyring file exists on disk.

Describe the Solution You Would Like

apt::key allows ensure parameter to have value refreshed. It would be nice to use similar approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions