Fix up lndhub hook config, converge all relevant nodes
This commit is contained in:
parent
3e79955261
commit
ad10e8cceb
@ -12,7 +12,9 @@
|
|||||||
"hostname": "ejabberd-4",
|
"hostname": "ejabberd-4",
|
||||||
"ipaddress": "192.168.122.39",
|
"ipaddress": "192.168.122.39",
|
||||||
"roles": [
|
"roles": [
|
||||||
|
"base",
|
||||||
"kvm_guest",
|
"kvm_guest",
|
||||||
|
"ldap_client",
|
||||||
"ejabberd",
|
"ejabberd",
|
||||||
"postgresql_client"
|
"postgresql_client"
|
||||||
],
|
],
|
||||||
@ -20,6 +22,7 @@
|
|||||||
"kosmos-base",
|
"kosmos-base",
|
||||||
"kosmos-base::default",
|
"kosmos-base::default",
|
||||||
"kosmos_kvm::guest",
|
"kosmos_kvm::guest",
|
||||||
|
"kosmos-dirsrv::hostsfile",
|
||||||
"kosmos_postgresql::hostsfile",
|
"kosmos_postgresql::hostsfile",
|
||||||
"kosmos-ejabberd::letsencrypt",
|
"kosmos-ejabberd::letsencrypt",
|
||||||
"kosmos-ejabberd",
|
"kosmos-ejabberd",
|
||||||
@ -39,7 +42,6 @@
|
|||||||
"postfix::sasl_auth",
|
"postfix::sasl_auth",
|
||||||
"hostname::default",
|
"hostname::default",
|
||||||
"kosmos-base::letsencrypt",
|
"kosmos-base::letsencrypt",
|
||||||
"kosmos-dirsrv::hostsfile",
|
|
||||||
"kosmos-ejabberd::firewall",
|
"kosmos-ejabberd::firewall",
|
||||||
"tor-full::default"
|
"tor-full::default"
|
||||||
],
|
],
|
||||||
@ -64,4 +66,4 @@
|
|||||||
"role[ldap_client]",
|
"role[ldap_client]",
|
||||||
"role[ejabberd]"
|
"role[ejabberd]"
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -12,12 +12,17 @@
|
|||||||
"hostname": "ejabberd-8",
|
"hostname": "ejabberd-8",
|
||||||
"ipaddress": "192.168.122.27",
|
"ipaddress": "192.168.122.27",
|
||||||
"roles": [
|
"roles": [
|
||||||
|
"base",
|
||||||
|
"kvm_guest",
|
||||||
|
"ldap_client",
|
||||||
"ejabberd",
|
"ejabberd",
|
||||||
"postgresql_client"
|
"postgresql_client"
|
||||||
],
|
],
|
||||||
"recipes": [
|
"recipes": [
|
||||||
"kosmos-base",
|
"kosmos-base",
|
||||||
"kosmos-base::default",
|
"kosmos-base::default",
|
||||||
|
"kosmos_kvm::guest",
|
||||||
|
"kosmos-dirsrv::hostsfile",
|
||||||
"kosmos_postgresql::hostsfile",
|
"kosmos_postgresql::hostsfile",
|
||||||
"kosmos-ejabberd::letsencrypt",
|
"kosmos-ejabberd::letsencrypt",
|
||||||
"kosmos-ejabberd",
|
"kosmos-ejabberd",
|
||||||
@ -37,7 +42,6 @@
|
|||||||
"postfix::sasl_auth",
|
"postfix::sasl_auth",
|
||||||
"hostname::default",
|
"hostname::default",
|
||||||
"kosmos-base::letsencrypt",
|
"kosmos-base::letsencrypt",
|
||||||
"kosmos-dirsrv::hostsfile",
|
|
||||||
"kosmos-ejabberd::firewall",
|
"kosmos-ejabberd::firewall",
|
||||||
"tor-full::default"
|
"tor-full::default"
|
||||||
],
|
],
|
||||||
@ -62,4 +66,4 @@
|
|||||||
"role[ldap_client]",
|
"role[ldap_client]",
|
||||||
"role[ejabberd]"
|
"role[ejabberd]"
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -21,9 +21,10 @@ postgres_port = node['lndhub-go']['postgres']['port']
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
akkounts_host = search(:node, "role:akkounts").first["knife_zero"]["host"]
|
akkounts_host = search(:node, "role:akkounts").first["knife_zero"]["host"]
|
||||||
node['lndhub-go']['webhook_url'] = "http://#{akkounts_host}:3000/webhooks/lndhub"
|
node.normal['lndhub-go']['webhook_url'] = "http://#{akkounts_host}:3000/webhooks/lndhub"
|
||||||
rescue
|
rescue => e
|
||||||
# No akkounts host found
|
puts "NO AKKOUNTS HOST FOUND"
|
||||||
|
puts e.message
|
||||||
end
|
end
|
||||||
|
|
||||||
git source_dir do
|
git source_dir do
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
<%= "#{key.upcase}_#{k.upcase}" %>=<%= v.to_s %>
|
<%= "#{key.upcase}_#{k.upcase}" %>=<%= v.to_s %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
<% if value %>
|
||||||
<%= key.upcase %>=<%= value.to_s %>
|
<%= key.upcase %>=<%= value.to_s %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user