How to declare LDAP servers in attributes ?
Hi, Did anyone try to define LDAP servers, using attributes in the cookbook? Is this cookbook usable since version 7.4, that introduced multiple LDAP definitions?
To match the
gitlab.rb format, generated from the
gitlab.rb.erb template, we would need to define heredoc included in heredoc, something like this (that does not work of course :)), as the YAML.load needs to be in
default['omnibus-gitlab']['gitlab_rb']['gitlab-rails']['ldap_servers'] = <<-'INCEPTION' YAML.load <<-EOS # main: # 'main' is the GitLab 'provider ID' of this LDAP server ## label # # A human-friendly name for your LDAP server. It is OK to change the label later, # for instance if you find out it is too large to fit on the web page. # # Example: 'Paris' or 'Acme, Ltd.' label: 'LDAP' host: '_your_ldap_server' port: 636 (etc) EOS INCEPTION
Of course, I may miss something here, any clue? Thanks!