From d9bb257f993ecf0f0df23cdc1baa30c5c5b872c7 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Fri, 28 Jan 2022 17:32:19 -0600 Subject: [PATCH] Move golang installation to own recipe Needed by more than one in the bitcoin cookbook now. --- site-cookbooks/kosmos-bitcoin/recipes/golang.rb | 13 +++++++++++++ site-cookbooks/kosmos-bitcoin/recipes/lnd.rb | 4 +--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 site-cookbooks/kosmos-bitcoin/recipes/golang.rb 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']