# # Cookbook:: kosmos-bitcoin # Recipe:: lnd # include_recipe "git" include_recipe "golang" # bitcoin_user = node['bitcoin']['username'] # bitcoin_group = node['bitcoin']['usergroup'] # bitcoin_datadir = node['bitcoin']['datadir'] # bitcoin_conf_path = node['bitcoin']['conf_path'] git node['lnd']['source_dir'] do repository node['lnd']['repo'] revision node['lnd']['revision'] action :sync notifies :run, 'bash[compile_lnd]', :immediately end bash "compile_lnd" do cwd node['lnd']['source_dir'] code <<-EOH source /etc/profile.d/golang.sh make clean && make && make install EOH action :nothing end