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

Regression in treatment of Globalconf #317

Closed
stompa75 opened this issue Sep 7, 2021 · 1 comment · Fixed by #318
Closed

Regression in treatment of Globalconf #317

stompa75 opened this issue Sep 7, 2021 · 1 comment · Fixed by #318

Comments

@stompa75
Copy link

stompa75 commented Sep 7, 2021

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.24.0
  • Ruby:
  • Distribution: CentOS 7
  • Module version: 3.0.0 and 3.1.0

This configuration from the documentation does not work any longer (works in v2):

# Configuring multiple olc serverIDs for multiple master or mirror mode
openldap::server::globalconf { 'ServerID':
  ensure  => present,
  value   => { 'ServerID' => [ '1 ldap://master1.example.com', '2 ldap://master2.example.com' ] }
}
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Openldap::Server::Globalconf[ServerID]:
parameter 'value' variant 0 expects a String value, got Struct
parameter 'value' variant 1 entry 'ServerID' expects a String value, got Tuple
@kenyon kenyon changed the title Regression in treatment og Globalconf Regression in treatment of Globalconf Sep 7, 2021
@kenyon kenyon added the docs Improvements or additions to documentation label Sep 7, 2021
@smortex
Copy link
Member

smortex commented Sep 7, 2021

The doc is right. This is a regression introduced in #300.

@smortex smortex added bug Something isn't working and removed docs Improvements or additions to documentation labels Sep 7, 2021
smortex added a commit that referenced this issue Sep 7, 2021
openldap_global_conf also support passing arrays of values, so add this
to the corresponding data type.

Fixes #317
@smortex smortex removed the bug Something isn't working label Sep 27, 2021
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.

3 participants