From 37787ce3e6388bb1acbeb3a08741b0db9b844a76 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Sun, 13 Jun 2021 17:49:59 +0200 Subject: [PATCH] Specify package version for rskj --- site-cookbooks/kosmos_rsk/attributes/default.rb | 1 + site-cookbooks/kosmos_rsk/recipes/rskj.rb | 1 + site-cookbooks/kosmos_rsk/test/integration/rskj/rskj_test.rb | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/site-cookbooks/kosmos_rsk/attributes/default.rb b/site-cookbooks/kosmos_rsk/attributes/default.rb index 03904ba..48cc220 100644 --- a/site-cookbooks/kosmos_rsk/attributes/default.rb +++ b/site-cookbooks/kosmos_rsk/attributes/default.rb @@ -1 +1,2 @@ +node.default['rskj']['version'] = '2.2.0~focal' node.default['rskj']['network'] = 'testnet' diff --git a/site-cookbooks/kosmos_rsk/recipes/rskj.rb b/site-cookbooks/kosmos_rsk/recipes/rskj.rb index 6bb98cd..0ec4a5d 100644 --- a/site-cookbooks/kosmos_rsk/recipes/rskj.rb +++ b/site-cookbooks/kosmos_rsk/recipes/rskj.rb @@ -23,6 +23,7 @@ apt_package 'rskj' do response_file 'rskj-preseed.cfg.erb' response_file_variables network: node['rskj']['network'] options '--assume-yes' + version node['rskj']['version'] end service "rsk" do diff --git a/site-cookbooks/kosmos_rsk/test/integration/rskj/rskj_test.rb b/site-cookbooks/kosmos_rsk/test/integration/rskj/rskj_test.rb index 3f5cac9..503dcaf 100644 --- a/site-cookbooks/kosmos_rsk/test/integration/rskj/rskj_test.rb +++ b/site-cookbooks/kosmos_rsk/test/integration/rskj/rskj_test.rb @@ -9,7 +9,7 @@ end describe package('rskj') do it { should be_installed } - its('version') { should eq '2.2.0' } + its('version') { should eq '2.2.0~focal' } end describe service('rsk') do