Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a flag for enabling/disabling certificate deployment (#17) #18

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Defaults variables for OpenLDAP role
################################################################################

# Deploy certificate
ldaptoolbox_openldap_deploy_certificates: false


# apt package repository
ldaptoolbox_openldap_apt_key_url: "https://ltb-project.org/documentation/_static/RPM-GPG-KEY-LTB-project"
Expand Down
2 changes: 2 additions & 0 deletions playbook/multimaster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# include extra schema
- ldaptoolbox_openldap_custom_schema_srcdir: "{{ playbook_dir }}/files/ldaptoolbox.oldap/usr/local/openldap/etc/openldap/schema"
- ldaptoolbox_openldap_custom_schema_list: [ custom.ldif ]
# Deploy certificates
- ldaptoolbox_openldap_deploy_certificates: true
- ldaptoolbox_openldap_olcTLSCACertificateFile: "{{ '/usr/local/openldap/etc/openldap/certs/ca.crt' }}"
- ldaptoolbox_openldap_olcTLSCertificateFile: "{{ '/usr/local/openldap/etc/openldap/certs/openldap.crt' }}"
- ldaptoolbox_openldap_olcTLSCertificateKeyFile: "{{ '/usr/local/openldap/etc/openldap/certs/openldap.key' }}"
Expand Down
1 change: 1 addition & 0 deletions playbook/standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- ldaptoolbox_openldap_custom_schema_srcdir: "{{ playbook_dir }}/files/ldaptoolbox.oldap/usr/local/openldap/etc/openldap/schema"
- ldaptoolbox_openldap_custom_schema_list: [ custom.ldif ]
# deploy certificates
- ldaptoolbox_openldap_deploy_certificates: true
- ldaptoolbox_openldap_olcTLSCACertificateFile: "{{ '/usr/local/openldap/etc/openldap/certs/ca.crt' }}"
- ldaptoolbox_openldap_olcTLSCertificateFile: "{{ '/usr/local/openldap/etc/openldap/certs/openldap.crt' }}"
- ldaptoolbox_openldap_olcTLSCertificateKeyFile: "{{ '/usr/local/openldap/etc/openldap/certs/openldap.key' }}"
Expand Down
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

- name: setup certificates
include_tasks: ldaptoolbox-certificates.yml
when: ldaptoolbox_openldap_deploy_certificates|bool == true

# Configuration
# -------------
Expand Down
Loading