From bfe26ece4309dee8aaed2f9c911bb89333a33d06 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 18 Feb 2020 12:08:34 +0100 Subject: site.pp: Only modify ldap.conf if HOST is not tjener.intern or ldap.intern. --- code/environments/production/manifests/site.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code/environments/production') diff --git a/code/environments/production/manifests/site.pp b/code/environments/production/manifests/site.pp index 39a7dba..7da41ac 100644 --- a/code/environments/production/manifests/site.pp +++ b/code/environments/production/manifests/site.pp @@ -264,7 +264,7 @@ class fsautoresizetab { class ldapconf { exec { 'add_tjener_to_ldapconf': command => "/bin/sed -i /etc/ldap/ldap.conf -e '\$ a HOST ldap.intern\\nBASE dc=skole,dc=skolelinux,dc=no\\nTLS_REQCERT demand\\nTLS_CACERT /etc/ssl/certs/debian-edu-server.crt\\n'", - unless => [ "/bin/grep -E 'HOST ldap.intern' /etc/ldap/ldap.conf" ], + unless => [ "/bin/grep -E 'HOST (tjener|ldap).intern' /etc/ldap/ldap.conf" ], } } -- cgit v1.2.3