include_recipe "tools"
include_recipe "apache::ssl"
+passwords = data_bag_item("otrs", "passwords")
+
package "libapache2-mod-perl2"
package "libapache2-reload-perl"
database_cluster = node[:otrs][:database_cluster]
database_name = node[:otrs][:database_name]
database_user = node[:otrs][:database_user]
-database_password = node[:otrs][:database_password]
+database_password = passwords[node[:otrs][:database_password]]
site = node[:otrs][:site]
remote_file "/tmp/otrs-#{version}.tar.bz2" do
group "root"
mode 0440
end
+
+template "/etc/cron.daily/otrs-backup" do
+ source "backup.cron.erb"
+ owner "root"
+ group "root"
+ mode 0755
+end