Move dirsrv (LDAP) primary node to new VM #401

Merged
raucao merged 29 commits from new_ldap_server into master 2022-05-11 14:55:06 +00:00
3 changed files with 2 additions and 5 deletions
Showing only changes of commit e89e0b3122 - Show all commits

View File

@ -7,8 +7,8 @@ default_run_list = %w(
production_run_list = %w(
role[postgresql_client]
kosmos-ejabberd::default
kosmos-ejabberd::letsencrypt
kosmos-ejabberd::default
)
env_run_lists(
'development' => default_run_list,

View File

@ -52,6 +52,7 @@ end
end
end
# TODO check if nginx is installed/running on the node
file "/etc/letsencrypt/renewal-hooks/deploy/nginx" do
content <<-EOF
#!/usr/bin/env bash

View File

@ -1,11 +1,7 @@
# Generated by Chef for <%= @host[:name] %>
# FIXME: The files only exist after the certbot hook created them, meaning
# we need to run Chef a second time
<% if File.exist?("/opt/ejabberd/conf/#{@host[:name]}.crt") && File.exist?("/opt/ejabberd/conf/#{@host[:name]}.key") -%>
certfiles:
- "/opt/ejabberd/conf/<%= @host[:name] %>.crt"
- "/opt/ejabberd/conf/<%= @host[:name] %>.key"
<% end -%>
host_config:
"<%= @host[:name] %>":
sql_type: pgsql