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:
parent
e3a7742153
commit
064e4dbb55
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user