-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add nssdb files for EL8 #244
Conversation
eca978a
to
45c925e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the one hand I wonder if this should be a vercmp
for >= 8
, on the other EL9 is so far in the future, that I probably don't care :)
manifests/ssltools/nssdb.pp
Outdated
@@ -6,7 +6,15 @@ | |||
Exec { logoutput => 'on_failure' } | |||
|
|||
$nss_db_password_file = "${nss_db_dir}/nss_db_password-file" | |||
$nssdb_files = ["${nss_db_dir}/cert8.db", "${nss_db_dir}/key3.db", "${nss_db_dir}/secmod.db"] | |||
|
|||
case $facts['operatingsystemmajrelease'] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I agree with @evgeni that we should be future compatible. How about:
$nssdb_files = $facts['operatingsystemmajrelease'] ? {
'7' => ["${nss_db_dir}/cert8.db", "${nss_db_dir}/key3.db", "${nss_db_dir}/secmod.db"],
default => ["${nss_db_dir}/cert9.db", "${nss_db_dir}/key4.db", "${nss_db_dir}/pkcs11.txt"],
}
45c925e
to
c62557f
Compare
Updated to change the default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do think the selector I suggested is a bit more readable but I'm fine either way.
c62557f
to
8cb2cce
Compare
No description provided.