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

$openldap::server::database::mirrormode does not enable olcMirrorMode #333

Closed
jouveits opened this issue Oct 7, 2021 · 0 comments · Fixed by #335
Closed

$openldap::server::database::mirrormode does not enable olcMirrorMode #333

jouveits opened this issue Oct 7, 2021 · 0 comments · Fixed by #335

Comments

@jouveits
Copy link

jouveits commented Oct 7, 2021

The mirrormode parameter of the openldap::server::database resource type expects a string (or undef) but internally is tested against a boolean

The parameter is currently useless and does not trigger the olcMirrorMode option.

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.24
  • Ruby: 2.5.9
  • Distribution: Centos 7
  • Module version: 4.0.0

How to reproduce (e.g Puppet code you use)

 openldap::server::database { 'dc=example,dc=com
    ensure     => present,
    rootdn     => 'admin',
    rootpw     => 'adminP.s5woRd',
    backend    => 'mdb',
    mirrormode => true,
    syncrepl   =>  #...,
  }

What are you seeing

No olcMirrorMode setting in the created database when this option is set to "true".

What behaviour did you expect instead

mirrormode should accept a boolean or undef.

@smortex smortex changed the title mirrormode parameter of openldap::server::database does not enable olcMirrorMode $openldap::server::database::mirrormode does not enable olcMirrorMode Jan 25, 2022
@smortex smortex added bug Something isn't working and removed bug Something isn't working labels Jan 25, 2022
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

Successfully merging a pull request may close this issue.

2 participants