Skip to content

Commit 0a90409

Browse files
author
Cosmin Lehene
committed
Expire yum cache when setting the repo

1 parent a943007 commit 0a90409

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

manifests/repo.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@
5757
}
5858
case $osrel {
5959
'6', '7': {
60+
exec { 'yum-clean-expire-cache':
61+
user => 'root',
62+
path => '/usr/bin',
63+
command => 'yum clean expire-cache',
64+
} ->
6065
package { 'mesosphere-el-repo':
6166
ensure => present,
6267
provider => 'rpm',

0 commit comments

Comments
 (0)