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:
parent
d0eb4c078d
commit
3a4e606459
@ -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'],
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user