diff options
author | Michael Scherer <misc@mageia.org> | 2010-11-21 17:22:33 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-11-21 17:22:33 +0000 |
commit | 45933cb82409f00107c7f01406877e53ba253e09 (patch) | |
tree | 5052960d65754a7c4a9690329e9ce6858292d57b /modules/openldap | |
parent | 8de8690ccae913319e96c78a39c9c6112882d980 (diff) | |
download | puppet-45933cb82409f00107c7f01406877e53ba253e09.tar puppet-45933cb82409f00107c7f01406877e53ba253e09.tar.gz puppet-45933cb82409f00107c7f01406877e53ba253e09.tar.bz2 puppet-45933cb82409f00107c7f01406877e53ba253e09.tar.xz puppet-45933cb82409f00107c7f01406877e53ba253e09.zip |
- use new class for openssl certs
Diffstat (limited to 'modules/openldap')
-rw-r--r-- | modules/openldap/manifests/init.pp | 6 |
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/" } } |