From 7ab83d3d82876b8802ae909ea1a5aadf604317e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Fri, 26 Jan 2024 09:00:25 +0300 Subject: [PATCH] Section header comments for ENV vars Improve readability of recipe --- .../kosmos-akkounts/recipes/default.rb | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/site-cookbooks/kosmos-akkounts/recipes/default.rb b/site-cookbooks/kosmos-akkounts/recipes/default.rb index e80f4ba..af41c51 100644 --- a/site-cookbooks/kosmos-akkounts/recipes/default.rb +++ b/site-cookbooks/kosmos-akkounts/recipes/default.rb @@ -69,17 +69,33 @@ if webhooks_allowed_ips.length > 0 env[:webhooks_allowed_ips] = webhooks_allowed_ips end +# +# BTCPay Server +# + if btcpay_host env[:btcpay_api_url] = "http://#{btcpay_host}:23001/api/v1" env[:btcpay_store_id] = node['akkounts']['btcpay']['store_id'] env[:btcpay_auth_token] = credentials["btcpay_auth_token"] end +# +# Discourse +# + env[:discourse_public_url] = "https://#{node['discourse']['domain']}" env[:discourse_connect_secret] = credentials['discourse_connect_secret'] +# +# Drone CI +# + env[:droneci_public_url] = node["droneci"]["public_url"] +# +# ejabberd +# + ejabberd_private_ip_addresses = [] search(:node, "role:ejabberd").each do |node| ejabberd_private_ip_addresses << node["knife_zero"]["host"] @@ -101,8 +117,16 @@ if ejabberd_private_ip_addresses.size > 0 env[:ejabberd_admin_url] = node['akkounts']['ejabberd']['admin_url'] end +# +# Gitea +# + env[:gitea_public_url] = "https://#{node['gitea']['domain']}" +# +# lndhub.go +# + if lndhub_host node.override["akkounts"]["lndhub"]["api_url"] = "http://#{lndhub_host}:3026" env[:lndhub_legacy_api_url] = node["akkounts"]["lndhub"]["api_url"] @@ -119,10 +143,22 @@ if lndhub_host end end +# +# Mastodon +# + env[:mastodon_public_url] = "https://#{node['kosmos-mastodon']['domain']}" +# +# MediaWiki +# + env[:mediawiki_public_url] = node['mediawiki']['url'] +# +# Akkounts Deployment +# + systemd_unit "akkounts.service" do content({ Unit: {