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

Fix $openldap::server::database::dboptions data type #350

Merged
merged 1 commit into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion manifests/server/database.pp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Optional[String[1]] $updateref = undef,
Array[String[1]] $limits = [],
# BDB/HDB options
Array[String[1]] $dboptions = [],
Hash[String[1],Variant[String[1],Array[String[1]]]] $dboptions = {},
Optional[String[1]] $synctype = undef,
# Synchronization options
Optional[Boolean] $mirrormode = undef,
Expand Down
14 changes: 8 additions & 6 deletions spec/defines/openldap_server_database_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@
'dn.exact="cn=personnel,dc=example,dc=org" size=unlimited',
'dn.exact="cn=dirsync,dc=example,dc=org" size=100000'
],
dboptions: [
'set_cachesize 0 10485760 0',
'set_lg_bsize 2097512',
'set_lg_dir /var/tmp/bdb-log',
'set_flags DB_LOG_AUTOREMOVE',
],
dboptions: {
config: [
'set_cachesize 0 10485760 0',
'set_lg_bsize 2097512',
'set_lg_dir /var/tmp/bdb-log',
'set_flags DB_LOG_AUTOREMOVE',
],
},
synctype: 'inclusive',
mirrormode: true,
syncusesubentry: 'wxw',
Expand Down