Skip to content

Commit f2f0a13

Browse files
pedmonPaul Edmon
andauthored
Adding a bunch of ldap and krb5 settings to domain.conf (#155)
* Adding a bunch of new settings. * Adding override_homedir * Refactoring to use custom_options instead. --------- Co-authored-by: Paul Edmon <pedmon@DESKTOP-5GBIA4B>
1 parent 8f8eeeb commit f2f0a13

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

REFERENCE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,6 +1376,7 @@ The following parameters are available in the `sssd::domain` defined type:
13761376
* [`proxy_pam_target`](#-sssd--domain--proxy_pam_target)
13771377
* [`proxy_lib_name`](#-sssd--domain--proxy_lib_name)
13781378
* [`ldap_user_search_filter`](#-sssd--domain--ldap_user_search_filter)
1379+
* [`custom_options`](#-sssd--domain--custom_options)
13791380

13801381
##### <a name="-sssd--domain--name"></a>`name`
13811382

@@ -1728,7 +1729,17 @@ Default value: `undef`
17281729

17291730
Data type: `Optional[String]`
17301731

1732+
##### <a name="-sssd--domain--custom_options"></a>`custom_options`
17311733

1734+
Data type: `Optional[Hash]`
1735+
1736+
If defined, this hash will be used to create the service
1737+
section instead of the parameters. You must provide all options
1738+
in the section you want to add. Each entry in the hash will be
1739+
added as a simple init pair
1740+
key = value
1741+
under the section in the sssd.conf file.
1742+
No error checking will be performed.
17321743

17331744
Default value: `undef`
17341745

manifests/domain.pp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@
6666
# @param proxy_lib_name
6767
# @param ldap_user_search_filter
6868
#
69+
# @param custom_options
70+
# If defined, this hash will be used to create the service
71+
# section instead of the parameters. You must provide all options
72+
# in the section you want to add. Each entry in the hash will be
73+
# added as a simple init pair key = value under the section in
74+
# the sssd.conf file.
75+
# No error checking will be performed.
76+
#
6977
# @author https://github.com/simp/pupmod-simp-sssd/graphs/contributors
7078
#
7179
define sssd::domain (
@@ -112,7 +120,8 @@
112120
Optional[String] $realmd_tags = undef,
113121
Optional[String] $proxy_pam_target = undef,
114122
Optional[String] $proxy_lib_name = undef,
115-
Optional[String] $ldap_user_search_filter = undef
123+
Optional[String] $ldap_user_search_filter = undef,
124+
Optional[Hash] $custom_options = undef
116125
) {
117126

118127
sssd::config::entry { "puppet_domain_${name}":

templates/domain.erb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,8 @@ proxy_pam_target = <%= @proxy_pam_target %>
107107
<% if @proxy_lib_name %>
108108
proxy_lib_name = <%= @proxy_lib_name %>
109109
<% end -%>
110+
<% if @custom_options -%>
111+
<% @custom_options.each do |opt,value| -%>
112+
<%= opt %> = <%= value %>
113+
<% end -%>
114+
<% end -%>

0 commit comments

Comments
 (0)