From 208d6de94d6e978ffe2f71d69fa5e4fee194450b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Fri, 21 Apr 2017 12:54:16 +0200 Subject: [PATCH] Add dependency on redis and do backups again --- site-cookbooks/kosmos-mastodon/recipes/default.rb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/site-cookbooks/kosmos-mastodon/recipes/default.rb b/site-cookbooks/kosmos-mastodon/recipes/default.rb index 3d301d1..d10b36f 100644 --- a/site-cookbooks/kosmos-mastodon/recipes/default.rb +++ b/site-cookbooks/kosmos-mastodon/recipes/default.rb @@ -8,6 +8,7 @@ # include_recipe "kosmos-nodejs" +include_recipe "kosmos-redis" node.override['postgresql']['enable_pgdg_apt'] = false include_recipe "postgresql::server" include_recipe "postgresql::ruby" @@ -154,10 +155,10 @@ application mastodon_path do end end -# unless node.chef_environment == "development" -# # Backup the database to S3 -# node.override["backup"]["postgresql"]["host"] = "localhost" -# node.override["backup"]["postgresql"]["username"] = "postgres" -# node.override["backup"]["postgresql"]["password"] = node['postgresql']['password']['postgres'] -# include_recipe "backup" -# end +unless node.chef_environment == "development" + # Backup the database to S3 + node.override["backup"]["postgresql"]["host"] = "localhost" + node.override["backup"]["postgresql"]["username"] = "postgres" + node.override["backup"]["postgresql"]["password"] = node['postgresql']['password']['postgres'] + include_recipe "backup" +end