Cleanup yum/dnf cache after repositories setup

... to ensure the latest packages are pulled from these repos.

Change-Id: If40c3cb012bced4d825714a84024354bece53b75
This commit is contained in:
Takashi Kajinami 2020-08-18 21:14:28 +09:00
parent e3a7742153
commit 064e4dbb55
1 changed files with 2 additions and 1 deletions

View File

@ -178,6 +178,7 @@ class openstack_extras::repo::redhat::redhat(
file { $filename:
path => "/etc/yum.repos.d/${filename}",
source => $url,
notify => Exec['yum_refresh'],
}
}
@ -208,7 +209,7 @@ class openstack_extras::repo::redhat::redhat(
command => '/usr/bin/dnf clean all',
refreshonly => true,
} -> Package <||>
} else {
} else {
exec { 'yum_refresh':
command => '/usr/bin/yum clean all',
refreshonly => true,