X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/faf8ae12e85eabb050b0f5eceb2cb67ad1de5261..de8cb84f053060182672c34d7bd2fb90fa1d3d2a:/cookbooks/otrs/recipes/default.rb diff --git a/cookbooks/otrs/recipes/default.rb b/cookbooks/otrs/recipes/default.rb index 731bdf273..c0f9c33e7 100644 --- a/cookbooks/otrs/recipes/default.rb +++ b/cookbooks/otrs/recipes/default.rb @@ -20,6 +20,8 @@ include_recipe "tools" include_recipe "apache::ssl" +passwords = data_bag_item("otrs", "passwords") + package "libapache2-mod-perl2" package "libapache2-reload-perl" @@ -40,7 +42,7 @@ group = node[:otrs][:group] 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 @@ -142,3 +144,10 @@ template "/etc/sudoers.d/otrs" do group "root" mode 0440 end + +template "/etc/cron.daily/otrs-backup" do + source "backup.cron.erb" + owner "root" + group "root" + mode 0755 +end