X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/025f7a54236d8750386bb0368aaeb36c055d2add..41487eea939ced6fb053fac4f68f77a314e4dfa5:/cookbooks/otrs/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/otrs/recipes/default.rb b/cookbooks/otrs/recipes/default.rb index 260623a80..b027a86b6 100644 --- a/cookbooks/otrs/recipes/default.rb +++ b/cookbooks/otrs/recipes/default.rb @@ -17,9 +17,10 @@ # limitations under the License. # -include_recipe "tools" -include_recipe "postgresql" +include_recipe "accounts" include_recipe "apache" +include_recipe "postgresql" +include_recipe "tools" passwords = data_bag_item("otrs", "passwords") @@ -63,7 +64,7 @@ postgresql_database database_name do end remote_file "#{Chef::Config[:file_cache_path]}/otrs-#{version}.tar.bz2" do - source "https://ftp.otrs.org/pub/otrs/otrs-#{version}.tar.bz2" + source "https://download.znuny.org/releases/otrs-#{version}.tar.bz2" not_if { ::File.exist?("/opt/otrs-#{version}") } end @@ -91,7 +92,7 @@ end file "/opt/otrs-#{version}/Kernel/Config.pm" do owner user group "www-data" - mode 0o664 + mode "664" content config end @@ -120,7 +121,7 @@ Dir.glob("/opt/otrs/var/cron/*.dist") do |distname| file name do owner "otrs" group "www-data" - mode 0o664 + mode "664" content IO.read(distname) notifies :run, "execute[/opt/otrs/bin/Cron.sh]" end @@ -140,12 +141,12 @@ template "/etc/sudoers.d/otrs" do source "sudoers.erb" owner "root" group "root" - mode 0o440 + mode "440" end template "/etc/cron.daily/otrs-backup" do source "backup.cron.erb" owner "root" group "root" - mode 0o755 + mode "755" end