Add Liquor Cabinet cookbooks and configs, deploy to production #541

Merged
raucao merged 13 commits from feature/535-liquor_cabinet into master 2024-02-04 13:47:05 +00:00
2 changed files with 15 additions and 0 deletions
Showing only changes of commit 98543f3e7d - Show all commits

View File

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

View File

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