Section header comments for ENV vars
Improve readability of recipe
This commit is contained in:
parent
b5020efdd5
commit
7ab83d3d82
@ -69,17 +69,33 @@ if webhooks_allowed_ips.length > 0
|
|||||||
env[:webhooks_allowed_ips] = webhooks_allowed_ips
|
env[:webhooks_allowed_ips] = webhooks_allowed_ips
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
# BTCPay Server
|
||||||
|
#
|
||||||
|
|
||||||
if btcpay_host
|
if btcpay_host
|
||||||
env[:btcpay_api_url] = "http://#{btcpay_host}:23001/api/v1"
|
env[:btcpay_api_url] = "http://#{btcpay_host}:23001/api/v1"
|
||||||
env[:btcpay_store_id] = node['akkounts']['btcpay']['store_id']
|
env[:btcpay_store_id] = node['akkounts']['btcpay']['store_id']
|
||||||
env[:btcpay_auth_token] = credentials["btcpay_auth_token"]
|
env[:btcpay_auth_token] = credentials["btcpay_auth_token"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
# Discourse
|
||||||
|
#
|
||||||
|
|
||||||
env[:discourse_public_url] = "https://#{node['discourse']['domain']}"
|
env[:discourse_public_url] = "https://#{node['discourse']['domain']}"
|
||||||
env[:discourse_connect_secret] = credentials['discourse_connect_secret']
|
env[:discourse_connect_secret] = credentials['discourse_connect_secret']
|
||||||
|
|
||||||
|
#
|
||||||
|
# Drone CI
|
||||||
|
#
|
||||||
|
|
||||||
env[:droneci_public_url] = node["droneci"]["public_url"]
|
env[:droneci_public_url] = node["droneci"]["public_url"]
|
||||||
|
|
||||||
|
#
|
||||||
|
# ejabberd
|
||||||
|
#
|
||||||
|
|
||||||
ejabberd_private_ip_addresses = []
|
ejabberd_private_ip_addresses = []
|
||||||
search(:node, "role:ejabberd").each do |node|
|
search(:node, "role:ejabberd").each do |node|
|
||||||
ejabberd_private_ip_addresses << node["knife_zero"]["host"]
|
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']
|
env[:ejabberd_admin_url] = node['akkounts']['ejabberd']['admin_url']
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
# Gitea
|
||||||
|
#
|
||||||
|
|
||||||
env[:gitea_public_url] = "https://#{node['gitea']['domain']}"
|
env[:gitea_public_url] = "https://#{node['gitea']['domain']}"
|
||||||
|
|
||||||
|
#
|
||||||
|
# lndhub.go
|
||||||
|
#
|
||||||
|
|
||||||
if lndhub_host
|
if lndhub_host
|
||||||
node.override["akkounts"]["lndhub"]["api_url"] = "http://#{lndhub_host}:3026"
|
node.override["akkounts"]["lndhub"]["api_url"] = "http://#{lndhub_host}:3026"
|
||||||
env[:lndhub_legacy_api_url] = node["akkounts"]["lndhub"]["api_url"]
|
env[:lndhub_legacy_api_url] = node["akkounts"]["lndhub"]["api_url"]
|
||||||
@ -119,10 +143,22 @@ if lndhub_host
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
# Mastodon
|
||||||
|
#
|
||||||
|
|
||||||
env[:mastodon_public_url] = "https://#{node['kosmos-mastodon']['domain']}"
|
env[:mastodon_public_url] = "https://#{node['kosmos-mastodon']['domain']}"
|
||||||
|
|
||||||
|
#
|
||||||
|
# MediaWiki
|
||||||
|
#
|
||||||
|
|
||||||
env[:mediawiki_public_url] = node['mediawiki']['url']
|
env[:mediawiki_public_url] = node['mediawiki']['url']
|
||||||
|
|
||||||
|
#
|
||||||
|
# Akkounts Deployment
|
||||||
|
#
|
||||||
|
|
||||||
systemd_unit "akkounts.service" do
|
systemd_unit "akkounts.service" do
|
||||||
content({
|
content({
|
||||||
Unit: {
|
Unit: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user