-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to start without certificates ( without ldaps or starttls ) (#11)
- update backup template with removal of optional cert related values if not provided - fix useful for rhel quick validation tests - without this test would require many more change in default that are for debian.
- Loading branch information
1 parent
2b3cb1a
commit c906a6a
Showing
3 changed files
with
39 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
- name: allow ldap to read TLS certificates | ||
ansible.builtin.user: | ||
name: "{{ ldaptoolbox_openldap_configuration_owner }}" | ||
groups: "{{ ldaptoolbox_openldap_sslgroup }}" | ||
state: present | ||
when: ( ldaptoolbox_openldap_olcTLSCertificateFile ) | ||
|
||
- name: Ensure correct file ownership, group and permissions for CA | ||
ansible.builtin.file: | ||
path: "{{ ldaptoolbox_openldap_olcTLSCACertificateFile }}" | ||
owner: "root" | ||
group: "root" | ||
mode: "644" | ||
when: ( ldaptoolbox_openldap_olcTLSCACertificateFile ) | ||
|
||
- name: Ensure correct file ownership, group and permissions for certificate | ||
ansible.builtin.file: | ||
path: "{{ ldaptoolbox_openldap_olcTLSCertificateFile }}" | ||
owner: "root" | ||
group: "root" | ||
mode: "644" | ||
when: ( ldaptoolbox_openldap_olcTLSCertificateFile ) | ||
|
||
- name: Ensure correct file ownership, group and permissions for key | ||
ansible.builtin.file: | ||
path: "{{ ldaptoolbox_openldap_olcTLSCertificateKeyFile }}" | ||
owner: "root" | ||
group: "{{ ldaptoolbox_openldap_sslgroup }}" | ||
mode: "640" | ||
when: ( ldaptoolbox_openldap_olcTLSCertificateKeyFile ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters