for getssl to work on redhat i had to change this:
`
GUEST:root@puppet2018:[/etc/puppetlabs/code/environments/production/modules/backuppc/files/ssh]: difff -r /etc/puppetlabs/code/environments/production/modules/getssl /etc/puppetlabs/code/environments/production/modules/getssl.old
diff '--width=230' --suppress-common-lines -w -B -b -y -r /etc/puppetlabs/code/environments/production/modules/getssl/manifests/params.pp /etc/puppetlabs/code/environments/production/modules/getssl.old/manifests/params.pp
case $::osfamily {
'Debian': {
$ssl_conf = '/usr/lib/ssl/openssl.cnf'
}
'Ubuntu': {
$ssl_conf = '/usr/lib/ssl/openssl.cnf'
}
'RedHat': {
$ssl_conf = '/etc/pki/tls/openssl.cnf'
}
default: {
fail("The ${module_name} module is not supported on an ${::osfamily} based system.")
}
}
hi,
for getssl to work on redhat i had to change this: ` GUEST:root@puppet2018:[/etc/puppetlabs/code/environments/production/modules/backuppc/files/ssh]: difff -r /etc/puppetlabs/code/environments/production/modules/getssl /etc/puppetlabs/code/environments/production/modules/getssl.old diff '--width=230' --suppress-common-lines -w -B -b -y -r /etc/puppetlabs/code/environments/production/modules/getssl/manifests/params.pp /etc/puppetlabs/code/environments/production/modules/getssl.old/manifests/params.pp
i used a fail failure on unknow systems but that can also be changed to only override on redhats.
class getssl::params{ case $::osfamily { 'Debian': { $ssl_conf = '/usr/lib/ssl/openssl.cnf' } 'Ubuntu': { $ssl_conf = '/usr/lib/ssl/openssl.cnf' } 'RedHat': { $ssl_conf = '/etc/pki/tls/openssl.cnf' } default: { fail("The ${module_name} module is not supported on an ${::osfamily} based system.") } }
Ghislain.