From dc2dd77a1bf41d27c55dfa6096c93b662f6923f2 Mon Sep 17 00:00:00 2001
From: Chris Hines <chris.hines@monash.edu>
Date: Wed, 9 Sep 2015 00:45:58 +0000
Subject: [PATCH] sssd uses the ldapDomain rather than the ansible_domain to
 template sssd.conf. Hopefully machines will work with sssd even with domain
 resolution (hostname -d)

---
 roles/ldapclient/templates/sssd.j2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/roles/ldapclient/templates/sssd.j2 b/roles/ldapclient/templates/sssd.j2
index 1dac0d8..7626e2d 100644
--- a/roles/ldapclient/templates/sssd.j2
+++ b/roles/ldapclient/templates/sssd.j2
@@ -1,6 +1,6 @@
 [sssd]
 config_file_version = 2
-domains = {{ ansible_domain }}
+domains = {{ ldapDomain }}
 services = nss, pam, autofs
 
 [nss]
@@ -9,7 +9,7 @@ filter_groups = slurm, munge
 
 [pam]
 
-[domain/{{ ansible_domain }}]
+[domain/{{ ldapDomain }}]
 ldap_referrals = false
 cache_credentials = false
 entry_cache_timeout=3600
-- 
GitLab