Skip to content

Commit

Permalink
Merge pull request #13 from hellofresh/feature/id-limits
Browse files Browse the repository at this point in the history
Add min_id max_id configuration options
  • Loading branch information
antonu17 committed Oct 11, 2018
2 parents 77776b5 + 7e9fefd commit b2c01d4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ feel free to create pull requests. You can find available options in `defaults/m
Some default values for domain specific configuration options are:

sssd_domain_defaults:
min_id: 1
max_id: 0
id_provider: ldap
auth_provider: ldap
enumerate: 'false'
Expand All @@ -51,6 +53,8 @@ Role supports configuring multiple domains using following syntax:

sssd_domains:
- name: domain_name
min_id:
max_id:
id_provider:
auth_provider:
ldap_uri:
Expand Down
4 changes: 4 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ sssd_nss:
filter_groups: root

sssd_domain_defaults:
min_id: 1
max_id: 0
id_provider: ldap
auth_provider: ldap
enumerate: 'false'
Expand All @@ -24,6 +26,8 @@ sssd_domain_defaults:

sssd_domains:
- name: default
min_id: "{{ sssd_domain_defaults.min_id }}"
max_id: "{{ sssd_domain_defaults.max_id }}"
id_provider: "{{ sssd_domain_defaults.id_provider }}"
auth_provider: "{{ sssd_domain_defaults.auth_provider }}"
ldap_uri: "{{ sssd_domain_defaults.ldap_uri }}"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ansible==2.3.2.0
ansible==2.4.6.0
molecule
docker-py
6 changes: 6 additions & 0 deletions templates/sssd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ filter_groups = {{ sssd_nss.filter_users }}
{% for domain in sssd_domains %}
[domain/{{ domain.name }}]
{# providers #}
min_id = {{ domain.min_id
if domain.min_id is defined
else sssd_domain_defaults.min_id }}
max_id = {{ domain.max_id
if domain.max_id is defined
else sssd_domain_defaults.max_id }}
id_provider = {{ domain.id_provider
if domain.id_provider is defined
else sssd_domain_defaults.id_provider }}
Expand Down

0 comments on commit b2c01d4

Please sign in to comment.