-remote_file "/tmp/otrs-#{version}.tar.bz2" do
- source "http://ftp.otrs.org/pub/otrs/otrs-#{version}.tar.bz2"
+postgresql_user database_user do
+ cluster database_cluster
+ password database_password
+end
+
+postgresql_database database_name do
+ cluster database_cluster
+ owner database_user
+end
+
+remote_file "#{Chef::Config[:file_cache_path]}/otrs-#{version}.tar.bz2" do
+ source "https://ftp.otrs.org/pub/otrs/otrs-#{version}.tar.bz2"