Yolanda Robla Mota 0870346039 Add libselinux-python as a dependency on RHEL
If not, bifrost fails with:
Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!

Change-Id: I8b9cc5996b414362bf86cfa8f0cedd5753981d7b
2016-09-20 17:05:09 +02:00

19 lines
590 B
Puppet

# common parameters to be reused in infracloud
class infracloud::params {
case $::osfamily {
'Debian': {
$cert_path = '/usr/local/share/ca-certificates'
$cert_command = '/usr/sbin/update-ca-certificates'
$bifrost_req_packages = [ 'gcc', 'libssl-dev', 'uuid-runtime' ]
}
'Redhat': {
$cert_path = '/etc/pki/ca-trust/source/anchors'
$cert_command = '/usr/bin/update-ca-trust'
$bifrost_req_packages = [ 'gcc', 'openssl-devel', 'libselinux-python' ]
}
default: {
fail('Only Debian and RedHat distros are supported.')
}
}
}