From 6c3df1095c477a4101acbbdc1c6ffd128a10c0e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luka=20Lu=CC=88dicke?= Date: Wed, 4 Jan 2017 11:49:07 +0100 Subject: [PATCH] add django-jsonfield and kombu dependency manually closes https://github.com/JonathanTron/chef-sentry/issues/16 --- attributes/default.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/attributes/default.rb b/attributes/default.rb index 882e177..3cee9f8 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -28,6 +28,13 @@ ["django-bcrypt", "0.9.2"], ["django-sendmail-backend", "0.1.2"], ] +if Gem::Version.new(node['sentry']['version']) < Gem::Version.new('8.0') + # pin some necessary packages so that database migration on older versions can work + # The sentry team did not backport these dependency changes so gotta install it manually + default['sentry']['plugins'] << ['django-jsonfield', '0.9.13'] # https://github.com/getsentry/sentry/issues/1648 + default['sentry']['plugins'] << ['kombu', '3.0.37'] # similar issue +end + # dependencies per: https://docs.getsentry.com/on-premise/server/installation/python/ default["sentry"]["dependency"]["packages"] = [ "python-dev",