Formatting
This commit is contained in:
parent
90e17b0abc
commit
ea635a52e9
@ -5,11 +5,12 @@
|
|||||||
|
|
||||||
include_recipe 'git'
|
include_recipe 'git'
|
||||||
include_recipe 'kosmos-bitcoin::golang'
|
include_recipe 'kosmos-bitcoin::golang'
|
||||||
|
include_recipe 'kosmos-bitcoin::user'
|
||||||
|
|
||||||
bitcoin_user = node['bitcoin']['username']
|
bitcoin_user = node['bitcoin']['username']
|
||||||
bitcoin_group = node['bitcoin']['usergroup']
|
bitcoin_group = node['bitcoin']['usergroup']
|
||||||
lnd_dir = node['lnd']['lnd_dir']
|
lnd_dir = node['lnd']['lnd_dir']
|
||||||
lncli_bin = "/opt/go/bin/lncli"
|
lncli_bin = '/opt/go/bin/lncli'
|
||||||
source_dir = node['lndhub-go']['source_dir']
|
source_dir = node['lndhub-go']['source_dir']
|
||||||
macaroon_path = "#{lnd_dir}/data/lndhub.macaroon"
|
macaroon_path = "#{lnd_dir}/data/lndhub.macaroon"
|
||||||
credentials = data_bag_item('credentials', 'lndhub-go')
|
credentials = data_bag_item('credentials', 'lndhub-go')
|
||||||
@ -26,10 +27,10 @@ git source_dir do
|
|||||||
end
|
end
|
||||||
|
|
||||||
bash 'compile_lndhub-go' do
|
bash 'compile_lndhub-go' do
|
||||||
cwd node['lndhub-go']['source_dir']
|
cwd source_dir
|
||||||
code "make"
|
code 'make'
|
||||||
action :nothing
|
action :nothing
|
||||||
notifies :restart, "systemd_unit[lndhub-go.service]", :delayed
|
notifies :restart, 'service[lndhub-go]', :delayed
|
||||||
end
|
end
|
||||||
|
|
||||||
bash 'bake_lndhub_macaroon' do
|
bash 'bake_lndhub_macaroon' do
|
||||||
@ -94,13 +95,13 @@ systemd_unit 'lndhub-go.service' do
|
|||||||
action [:create, :enable, :start]
|
action [:create, :enable, :start]
|
||||||
end
|
end
|
||||||
|
|
||||||
service "lndhub-go" do
|
service 'lndhub-go' do
|
||||||
action :nothing
|
action :nothing
|
||||||
end
|
end
|
||||||
|
|
||||||
firewall_rule 'lndhub-go' do
|
firewall_rule 'lndhub-go' do
|
||||||
port node['lndhub-go']['port']
|
port node['lndhub-go']['port']
|
||||||
source "10.1.1.0/24"
|
source '10.1.1.0/24'
|
||||||
protocol :tcp
|
protocol :tcp
|
||||||
command :allow
|
command :allow
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user