Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

params fro redhat systems #12

Open
aqueos opened this issue Apr 18, 2018 · 0 comments
Open

params fro redhat systems #12

aqueos opened this issue Apr 18, 2018 · 0 comments

Comments

@aqueos
Copy link

aqueos commented Apr 18, 2018

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 > 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.") > } > } > > $ssl_conf = '/usr/lib/ssl/openssl.cnf' | # $ssl_conf = '/usr/lib/ssl/openssl.cnf'

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant