Browse Source

Cleanup yum/dnf cache after repositories setup

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

Change-Id: If40c3cb012bced4d825714a84024354bece53b75
changes/94/746694/4
Takashi Kajinami 11 months ago
parent
commit
064e4dbb55
  1. 3
      manifests/repo/redhat/redhat.pp

3
manifests/repo/redhat/redhat.pp

@ -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…
Cancel
Save