Move golang installation to own recipe

Needed by more than one in the bitcoin cookbook now.
This commit is contained in:
Basti 2022-01-28 17:32:19 -06:00
parent 13ae913668
commit d9bb257f99
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72
2 changed files with 14 additions and 3 deletions

View File

@ -0,0 +1,13 @@
#
# Cookbook:: kosmos-bitcoin
# Recipe:: boltz
#
# Internal recipe for managing the Go installation in one place
#
node.override['golang']['version'] = "1.17.4"
include_recipe "golang"
link '/usr/local/bin/go' do
to '/usr/local/go/bin/go'
end

View File

@ -4,9 +4,7 @@
#
include_recipe "git"
node.override['golang']['version'] = "1.17.4"
include_recipe "golang"
include_recipe "kosmos-bitcoin::golang"
git node['lnd']['source_dir'] do
repository node['lnd']['repo']