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:
commit
c9abc779a0
@ -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'] {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user