chore: set yum/dnf metadata expiry (#226)

- set expiry to 1 day so that dnf frequently checks for updates from packagerepo

Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/226
This commit is contained in:
Ben Vincent 2025-03-29 22:37:37 +11:00
parent d0eb4c078d
commit 3a4e606459

View File

@ -32,13 +32,14 @@ class profiles::defaults {
} }
Yumrepo { Yumrepo {
ensure => 'present', ensure => 'present',
enabled => 1, enabled => 1,
gpgcheck => 1, gpgcheck => 1,
require => [ metadata_expire => '1d',
require => [
Class['profiles::pki::vaultca'], Class['profiles::pki::vaultca'],
Class['crypto_policies'], Class['crypto_policies'],
], ],
notify => Exec['dnf_makecache'], notify => Exec['dnf_makecache'],
} }
} }