Add dependency on redis and do backups again

This commit is contained in:
Greg 2017-04-21 12:54:16 +02:00
parent e98b887665
commit 208d6de94d
1 changed files with 8 additions and 7 deletions

View File

@ -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