diff --git a/site-cookbooks/kosmos-bitcoin/recipes/golang.rb b/site-cookbooks/kosmos-bitcoin/recipes/golang.rb new file mode 100644 index 0000000..b6ff84b --- /dev/null +++ b/site-cookbooks/kosmos-bitcoin/recipes/golang.rb @@ -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 diff --git a/site-cookbooks/kosmos-bitcoin/recipes/lnd.rb b/site-cookbooks/kosmos-bitcoin/recipes/lnd.rb index 8db4249..fd6549d 100644 --- a/site-cookbooks/kosmos-bitcoin/recipes/lnd.rb +++ b/site-cookbooks/kosmos-bitcoin/recipes/lnd.rb @@ -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']