+old_installation = begin
+ File.readlink("/opt/otrs")
+ rescue StandardError
+ nil
+ end
+
+postgresql_user database_user do
+ cluster database_cluster
+ password database_password
+end
+
+postgresql_database database_name do
+ cluster database_cluster
+ owner database_user
+end
+