diff --git a/environments/production.json b/environments/production.json index 0b458e8..e80e3b7 100644 --- a/environments/production.json +++ b/environments/production.json @@ -82,6 +82,8 @@ }, "liquor-cabinet": { "ufw_source_allowed": "10.1.1.0/24", + "redis_port": 6379, + "redis_db": 1, "s3_endpoint": "http://localhost:3900", "s3_region": "garage", "s3_bucket": "rs-kosmos", diff --git a/site-cookbooks/kosmos-akkounts/recipes/default.rb b/site-cookbooks/kosmos-akkounts/recipes/default.rb index af41c51..558dc5b 100644 --- a/site-cookbooks/kosmos-akkounts/recipes/default.rb +++ b/site-cookbooks/kosmos-akkounts/recipes/default.rb @@ -155,6 +155,19 @@ env[:mastodon_public_url] = "https://#{node['kosmos-mastodon']['domain']}" env[:mediawiki_public_url] = node['mediawiki']['url'] +# +# remoteStorage / Liquor Cabinet +# + +env[:rs_storage_url] = "https://#{node['liquor-cabinet']['domain']}" + +rs_redis_host = search(:node, "role:redis_server").first["knife_zero"]["host"] rescue nil +rs_redis_port = node['liquor-cabinet']['redis_port'] +rs_redis_db = node['liquor-cabinet']['redis_db'] +if rs_redis_host + env[:rs_redis_url] = "redis://#{rs_redis_host}:#{rs_redis_port}/#{rs_redis_db}" +end + # # Akkounts Deployment #