database_user = node[:otrs][:database_user]
database_password = passwords[node[:otrs][:database_password]]
site = node[:otrs][:site]
+site_aliases = node[:otrs][:site_aliases] || []
postgresql_user database_user do
cluster database_cluster
end
ssl_certificate site do
- domains site
+ domains [site] + site_aliases
notifies :reload, "service[apache2]"
end
apache_site site do
template "apache.erb"
+ variables :aliases => site_aliases
end
template "/etc/sudoers.d/otrs" do