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 was merged in pull request #226.
This commit is contained in:
@@ -32,13 +32,14 @@ class profiles::defaults {
|
||||
}
|
||||
|
||||
Yumrepo {
|
||||
ensure => 'present',
|
||||
enabled => 1,
|
||||
gpgcheck => 1,
|
||||
require => [
|
||||
ensure => 'present',
|
||||
enabled => 1,
|
||||
gpgcheck => 1,
|
||||
metadata_expire => '1d',
|
||||
require => [
|
||||
Class['profiles::pki::vaultca'],
|
||||
Class['crypto_policies'],
|
||||
],
|
||||
notify => Exec['dnf_makecache'],
|
||||
notify => Exec['dnf_makecache'],
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user