In addition to installing and configuring the new module, this also enables public access to the S3 API via `bucket-name.s3.kosmos.org` as well as Web access on `bucket-name.web.s3.kosmos.org` (when enabled). Also includes some drive-by improvements to Chef attribute naming and usage. Co-authored-by: Greg Karékinian <greg@karekinian.com>
26 lines
799 B
Plaintext
26 lines
799 B
Plaintext
# Generated by Chef for <%= @host[:name] %>
|
|
certfiles:
|
|
- "/opt/ejabberd/conf/<%= @host[:name] %>.crt"
|
|
- "/opt/ejabberd/conf/<%= @host[:name] %>.key"
|
|
host_config:
|
|
"<%= @host[:name] %>":
|
|
sql_type: pgsql
|
|
sql_server: "<%= @sql_server %>"
|
|
sql_database: "<%= @host[:sql_database] %>"
|
|
sql_username: "ejabberd"
|
|
sql_password: "<%= @pgsql_password %>"
|
|
<% if @host[:ldap_enabled] -%>
|
|
auth_method: ldap
|
|
ldap_servers: ["<%= @ldap_server %>"]
|
|
ldap_rootdn: "<%= @ldap_rootdn %>"
|
|
ldap_password: "<%= @host[:ldap_password] %>"
|
|
ldap_encrypt: <%= @ldap_encryption_type %>
|
|
ldap_base: "ou=<%= @host[:name] %>,<%= @ldap_base %>"
|
|
ldap_filter: "(objectClass=person)"
|
|
<% end -%>
|
|
|
|
append_host_config:
|
|
"<%= @host[:name] %>":
|
|
<%= @host[:append_host_config].chomp %>
|
|
|