Puppet Class: tripleo::packages::upgrades
- Defined in:
- manifests/packages/upgrades.pp
Overview
Class: tripleo::packages::upgrades
Upgrade packages using yum.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'manifests/packages/upgrades.pp', line 20
class tripleo::packages::upgrades {
# required for stages
include stdlib
case $::osfamily {
'RedHat': {
$pkg_upgrade_cmd = 'yum -y update'
}
default: {
fail('Please specify a package upgrade command for distribution.')
}
}
# Running the package upgrade before managing Services in the main stage.
# So we're sure that services will be able to restart with the new version
# of the package.
ensure_resource('exec', 'package-upgrade', {
'command' => $pkg_upgrade_cmd,
'path' => '/usr/bin',
'timeout' => 0,
})
}
|