Yolanda Robla Mota cad3ddc59c Install required packages for infracloud
Current ansible install fails when does not find gcc
or openssl-dev. Add this before calling the ansible class.
Also remove uuid dependency from RHEL as package does
not exist.

Change-Id: I1c9002d669ec8df30ef09b3086f9f5297e032da1
2016-09-16 11:39:53 +02:00

19 lines
569 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' ]
}
default: {
fail('Only Debian and RedHat distros are supported.')
}
}
}