Enable LDAP on the kosmos.org vhost

This commit is contained in:
Greg Karékinian
2020-02-18 15:47:31 +01:00
parent 276daf0ed7
commit 90a0e6be9f
3 changed files with 17 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ maintainer_email 'ops@kosmos.org'
license 'MIT'
description 'Installs/Configures kosmos-ejabberd'
long_description 'Installs/Configures kosmos-ejabberd'
version '0.1.2'
version '0.2.0'
chef_version '>= 12.14' if respond_to?(:chef_version)
# The `issues_url` points to the location where issues for this cookbook are

View File

@@ -61,7 +61,8 @@ hosts = [
{
name: "kosmos.org",
sql_database: "ejabberd",
ldap_enabled: false,
ldap_enabled: true,
ldap_password: ejabberd_credentials['kosmos_ldap_password'],
append_host_config: <<-EOF
modules:
mod_muc:
@@ -134,6 +135,7 @@ hosts.each do |host|
ldap_base: ldap_base,
ldap_server: ldap_domain,
ldap_encryption_type: ldap_encryption_type
notifies :run, "execute[ejabberdctl reload_config]", :delayed
end
end