Merge "Install rhos-log-collector only on RHEL systems"

This commit is contained in:
Jenkins
2015-02-09 12:20:37 +00:00
committed by Gerrit Code Review
2 changed files with 9 additions and 8 deletions

View File

@@ -657,15 +657,12 @@ def server_prep(config, messages):
server.append('rpm -q --whatprovides yum-utils || '
'yum install -y yum-utils')
# Installing rhos-log-collector and sos-plugins-openstack if
# these rpms are available from yum.
sos_rpms = ' '.join(('rhos-log-collector',
'sos',
'sos-plugins-openstack'))
if is_rhel():
# Installing rhos-log-collector if it is available from yum.
server.append('yum list available rhos-log-collector && '
'yum -y install rhos-log-collector || '
'echo "no rhos-log-collector available"')
server.append('yum list available rhos-log-collector && '
'yum -y install %s || '
'echo "no rhos-log-collector available"' % sos_rpms)
server.execute()
# enable RDO if it is installed locally

View File

@@ -11,6 +11,10 @@ if $::operatingsystem != 'Fedora' {
}
}
package { 'sos':
ensure => present,
}
package { 'audit':
ensure => present,
} ->