aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openldap/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/openldap/manifests/init.pp')
-rw-r--r--modules/openldap/manifests/init.pp6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/openldap/manifests/init.pp b/modules/openldap/manifests/init.pp
index ebdf2a4f..991aee40 100644
--- a/modules/openldap/manifests/init.pp
+++ b/modules/openldap/manifests/init.pp
@@ -17,10 +17,8 @@ class openldap {
mode => 755,
}
- $pem_file = 'ldap.pem'
- exec { "openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout $pem_file -out $pem_file -subj '/CN=ldap.$domain'":
- cwd => "/etc/ssl/openldap/",
- creates => "/etc/ssl/openldap/$pem_file"
+ openssl::self_signed_cert{ 'ldap':
+ directory => "/etc/ssl/openldap/"
}
}