Merge "Workaround potential systemd failures with a pre-upgrade"

This commit is contained in:
Jenkins 2015-09-14 23:41:51 +00:00 committed by Gerrit Code Review
commit bf41610938

View File

@ -52,14 +52,23 @@ function is_opensuse {
# Distro specific puppet installs
#
function _systemd_update {
# there is a bug (rhbz#1261747) where systemd can fail to enable
# services due to selinux errors after upgrade. A work-around is
# to install the latest version here and restart the daemon after
# it is upgraded.
yum install -y systemd
systemctl daemon-reload
}
function setup_puppet_fedora {
_systemd_update
yum update -y
# NOTE: we preinstall lsb_release to ensure facter sets
# lsbdistcodename
yum install -y redhat-lsb-core git puppet
mkdir -p /etc/puppet/modules/
# Puppet expects the pip command named as pip-python on
@ -74,7 +83,6 @@ function setup_puppet_fedora {
}
function setup_puppet_rhel7 {
local puppet_pkg="https://yum.puppetlabs.com/el/7/products/x86_64/puppetlabs-release-7-10.noarch.rpm"
# install a bootstrap epel repo to install latest epel-release
@ -91,6 +99,7 @@ EOF
yum --enablerepo=epel-bootstrap -y install epel-release
rm -f /etc/yum.repos.d/epel-bootstrap.repo
_systemd_update
yum update -y
# NOTE: we preinstall lsb_release to ensure facter sets lsbdistcodename