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