Deploy RTL without the deprecated application cookbook
This commit is contained in:
parent
9378df23db
commit
57fdf0723f
@ -74,13 +74,8 @@ node.default['rtl']['revision'] = 'v0.12.1'
|
||||
node.default['rtl']['host'] = '10.1.1.163'
|
||||
node.default['rtl']['port'] = '3000'
|
||||
|
||||
node.default['lndhub']['repo'] = 'https://gitea.kosmos.org/kosmos/lndhub.git'
|
||||
node.default['lndhub']['revision'] = 'master'
|
||||
node.default['lndhub']['port'] = '3023'
|
||||
node.default['lndhub']['domain'] = 'lndhub.kosmos.org'
|
||||
|
||||
node.default['lndhub-go']['repo'] = 'https://github.com/getAlby/lndhub.go.git'
|
||||
node.default['lndhub-go']['revision'] = '0.12.0'
|
||||
node.default['lndhub-go']['revision'] = '0.14.0'
|
||||
node.default['lndhub-go']['source_dir'] = '/opt/lndhub-go'
|
||||
node.default['lndhub-go']['port'] = 3026
|
||||
node.default['lndhub-go']['domain'] = 'lndhub.kosmos.org'
|
||||
|
@ -7,7 +7,6 @@ long_description 'Installs/configures bitcoin-related software'
|
||||
version '0.1.0'
|
||||
chef_version '>= 14.0'
|
||||
|
||||
depends 'application_javascript'
|
||||
depends 'ark'
|
||||
depends 'backup'
|
||||
depends 'firewall'
|
||||
|
@ -51,19 +51,17 @@ if node['boltz']
|
||||
rtl_config[:nodes][0][:Settings][:boltzServerUrl] = "https://#{node['boltz']['rest_host']}:#{node['boltz']['rest_port']}"
|
||||
end
|
||||
|
||||
application rtl_dir do
|
||||
owner bitcoin_user
|
||||
group bitcoin_group
|
||||
|
||||
git do
|
||||
git rtl_dir do
|
||||
user bitcoin_user
|
||||
group bitcoin_group
|
||||
repository node['rtl']['repo']
|
||||
revision node['rtl']['revision']
|
||||
notifies :restart, "systemd_unit[rtl.service]", :delayed
|
||||
notifies :restart, "systemd_unit[#{app_name}.service]", :delayed
|
||||
end
|
||||
|
||||
npm_install do
|
||||
execute "npm install" do
|
||||
cwd rtl_dir
|
||||
environment "HOME" => rtl_dir
|
||||
user bitcoin_user
|
||||
end
|
||||
|
||||
@ -72,10 +70,10 @@ application rtl_dir do
|
||||
group bitcoin_group
|
||||
mode '0640'
|
||||
content rtl_config.to_json
|
||||
notifies :restart, "systemd_unit[rtl.service]", :delayed
|
||||
notifies :restart, "systemd_unit[#{app_name}.service]", :delayed
|
||||
end
|
||||
|
||||
systemd_unit 'rtl.service' do
|
||||
systemd_unit "#{app_name}.service" do
|
||||
content({
|
||||
Unit: {
|
||||
Description: 'Ride The Lightning',
|
||||
@ -105,7 +103,6 @@ application rtl_dir do
|
||||
triggers_reload true
|
||||
action [:create, :enable, :start]
|
||||
end
|
||||
end
|
||||
|
||||
include_recipe 'firewall'
|
||||
firewall_rule 'rtl_private' do
|
||||
|
Loading…
x
Reference in New Issue
Block a user