Install rhos-log-collector only on RHEL systems
- sos-plugins-openstack is obsolete and had been backported into the
  main package since sos-3.0-23.el7_0.4 released Nov 2014 [1]
- sos is in fedora, so it should be install on fedora too.
[1] https://rhn.redhat.com/errata/RHBA-2014-1871.html
Change-Id: I7a94a09913388303dd271bfa3e055563716617d2
(cherry picked from commit cd467f7491)
			
			
This commit is contained in:
		
				
					committed by
					
						
						Lukas Bezdicka
					
				
			
			
				
	
			
			
			
						parent
						
							25ced1296f
						
					
				
				
					commit
					3562b2f88b
				
			@@ -645,15 +645,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
 | 
			
		||||
 
 | 
			
		||||
@@ -23,6 +23,10 @@ if $::operatingsystem in $el_releases and $::operatingsystemmajrelease < 7 {
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
package { 'sos':
 | 
			
		||||
  ensure => present,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
package { 'audit':
 | 
			
		||||
  ensure => present,
 | 
			
		||||
} ->
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user