-
-
Notifications
You must be signed in to change notification settings - Fork 134
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 parameters to configure hdb in openldap::server::database #66
Conversation
t << "olcDbCachesize: #{resource[:dbcachesize]}\n" if resource[:dbcachesize] and resource[:backend] =~ /^(hdb|mdb|bdb)$/ | ||
t << "olcDbCachefree: #{resource[:dbcachefree]}\n" if resource[:dbcachefree] and resource[:backend] =~ /^(hdb|mdb|bdb)$/ | ||
t << "olcDbCheckpoint: #{resource[:dbcheckpoint]}\n" if resource[:dbcheckpoint] and resource[:backend] =~ /^(hdb|mdb|bdb)$/ | ||
##t << "olcDbConfig: #{resource[:dbconfig]}\n" if resource[:dbconfig] and resource[:backend] =~ /^(hdb|mdb|bdb)$/ |
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.
Why is this commented out?
@amateo great PR, could you please rebase on master to pull my recent patches for Puppet4 to see if it still works with your code? |
I think that's a whole lot of properties added to this type. I'd rather see a |
I can change them to a hash. I don't mind. What would you prefer? |
@amateo I think a hash for at least for db* properties would be better and would reduce the code. |
I'm modifying this. I have a doubt about how to handle absent options. Lets suppose you already have a database with this options:
I'm mapping all
So, lets suppose that now I change my puppet code to:
removing the What do you prefer? That the provider removes the |
@amateo you can maybe add an additional parameter that allows to choose between |
One comment about this PR: the dboptions hash parameter, accepts index as a key (since db index options is map to olcDbIndex ldif attribute. This could conflict with openldap_dbindex provider if you use To solve this one solution is forcing to use What do you think? |
…able to handle all options listed at http://www.openldap.org/doc/admin24/slapdconf2.html#Database-specific%20Directives
Hello @mcanevet. Will you merge this PR? |
@amateo acceptance tests pass. So let's merge this! |
Add parameters to configure hdb in openldap::server::database
Thanks |
I have modified
openldap::server::database
andopenldap_database
provider so you could use most of the parameters supported in hdb (and bdb) databases documented atman slapd-hdb