Add generic options to nslcd template
This commit is contained in:
parent
b3e7587bc4
commit
fe3844ebe8
@ -27,6 +27,7 @@ class nslcd (
|
|||||||
$ldap_ssl = $nslcd::params::ldap_ssl,
|
$ldap_ssl = $nslcd::params::ldap_ssl,
|
||||||
$ldap_tls_reqcert = $nslcd::params::ldap_tls_reqcert,
|
$ldap_tls_reqcert = $nslcd::params::ldap_tls_reqcert,
|
||||||
$ldap_tls_cacertfile = $nslcd::params::ldap_tls_cacertfile,
|
$ldap_tls_cacertfile = $nslcd::params::ldap_tls_cacertfile,
|
||||||
|
$ldap_options = $nslcd::params::ldap_options,
|
||||||
) inherits nslcd::params {
|
) inherits nslcd::params {
|
||||||
|
|
||||||
# Input validation
|
# Input validation
|
||||||
|
@ -21,6 +21,7 @@ class nslcd::params {
|
|||||||
$ldap_ssl = 'off'
|
$ldap_ssl = 'off'
|
||||||
$ldap_tls_reqcert = 'allow'
|
$ldap_tls_reqcert = 'allow'
|
||||||
$ldap_tls_cacertfile = undef
|
$ldap_tls_cacertfile = undef
|
||||||
|
$ldap_options = {}
|
||||||
|
|
||||||
$default_config = '/etc/nslcd.conf'
|
$default_config = '/etc/nslcd.conf'
|
||||||
$default_package_name = 'nslcd'
|
$default_package_name = 'nslcd'
|
||||||
|
@ -51,4 +51,10 @@ filter <%= map %> <%= filter %>
|
|||||||
map <%= key %> <%= value %>
|
map <%= key %> <%= value %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
|
<% if @ldap_options.length > 0 -%>
|
||||||
|
# Additional options
|
||||||
|
<% @ldap_options.each do |name, value| -%>
|
||||||
|
<%= name %> <%= value %>
|
||||||
|
<% end -%>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
Loading…
Reference in New Issue
Block a user