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

Adding a bunch of ldap and krb5 settings to domain.conf #155

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1376,6 +1376,7 @@ The following parameters are available in the `sssd::domain` defined type:
* [`proxy_pam_target`](#-sssd--domain--proxy_pam_target)
* [`proxy_lib_name`](#-sssd--domain--proxy_lib_name)
* [`ldap_user_search_filter`](#-sssd--domain--ldap_user_search_filter)
* [`custom_options`](#-sssd--domain--custom_options)

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

Expand Down Expand Up @@ -1728,7 +1729,17 @@ Default value: `undef`

Data type: `Optional[String]`

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

Data type: `Optional[Hash]`

If defined, this hash will be used to create the service
section instead of the parameters. You must provide all options
in the section you want to add. Each entry in the hash will be
added as a simple init pair
key = value
under the section in the sssd.conf file.
No error checking will be performed.

Default value: `undef`

Expand Down
11 changes: 10 additions & 1 deletion manifests/domain.pp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@
# @param proxy_lib_name
# @param ldap_user_search_filter
#
# @param custom_options
# If defined, this hash will be used to create the service
# section instead of the parameters. You must provide all options
# in the section you want to add. Each entry in the hash will be
# added as a simple init pair key = value under the section in
# the sssd.conf file.
# No error checking will be performed.
#
# @author https://github.com/simp/pupmod-simp-sssd/graphs/contributors
#
define sssd::domain (
Expand Down Expand Up @@ -112,7 +120,8 @@
Optional[String] $realmd_tags = undef,
Optional[String] $proxy_pam_target = undef,
Optional[String] $proxy_lib_name = undef,
Optional[String] $ldap_user_search_filter = undef
Optional[String] $ldap_user_search_filter = undef,
Optional[Hash] $custom_options = undef
) {

sssd::config::entry { "puppet_domain_${name}":
Expand Down
5 changes: 5 additions & 0 deletions templates/domain.erb
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,8 @@ proxy_pam_target = <%= @proxy_pam_target %>
<% if @proxy_lib_name %>
proxy_lib_name = <%= @proxy_lib_name %>
<% end -%>
<% if @custom_options -%>
<% @custom_options.each do |opt,value| -%>
<%= opt %> = <%= value %>
<% end -%>
<% end -%>