Skip to content
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

Please add fact providing the default built-in database type #163

Closed
yarda opened this issue Nov 25, 2024 · 3 comments
Closed

Please add fact providing the default built-in database type #163

yarda opened this issue Nov 25, 2024 · 3 comments

Comments

@yarda
Copy link
Contributor

yarda commented Nov 25, 2024

On RHEL < 10 the default built-in database is "hash" which is what postfix upstream intended. On RHEL>=10 the default built-in database changed to "lmdb" (diversion from upstream), because the bdb library providing the "hash" was dropped. This can be issue on some other distro's not only on RHEL, because bdb is quite problematic library.

So this can affects playbooks using this role which can run across different RHEL versions. For example on < RHEL-10 you need to have:

relay_domains="hash:/etc/postfix/relay_domains"

But on >= RHEL-10 you need to have:

relay_domains="lmdb:/etc/postfix/relay_domains"

It would be great if you could write it as:

relay_domains="$DEFAULT_MAP:/etc/postfix/relay_domains"

or similarly.

@yarda
Copy link
Contributor Author

yarda commented Nov 25, 2024

Detection:

RHEL-9:

$ postconf default_database_type
default_database_type = hash

RHEL-10:

$ postconf default_database_type
default_database_type = lmdb

@yarda
Copy link
Contributor Author

yarda commented Nov 28, 2024

Or without additional parsing:

$ postconf -h default_database_type
hash

@richm
Copy link
Contributor

richm commented Dec 2, 2024

#165

@richm richm closed this as completed Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants