Merge pull request 'fix: yumrepo purge after deploy' (#33) from neoloc/yumresources into develop

Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/33
This commit is contained in:
Ben Vincent 2024-06-14 23:32:41 +10:00
commit c9abc779a0

View File

@ -16,6 +16,13 @@ class profiles::yum::global (
purge => $purge,
}
exec {'purge_almalinux_default_repos':
command => 'rm -f /etc/yum.repos.d/almalinux*.repo',
path => ['/bin', '/usr/bin'],
onlyif => 'find /etc/yum.repos.d/ -type f -name *almalinux* | grep .',
before => Resources['yumrepo'],
}
# download all gpg keys if a repo defines it
$repos.each |$name, $repo| {
if $repo['gpgkey'] {