From 49df3e7b93358a8ff14cf1c0343e9a22f886dd9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Fri, 4 Apr 2025 16:57:51 +0400 Subject: [PATCH] Upgrade rskj to 7.0.0 --- site-cookbooks/kosmos_rsk/attributes/default.rb | 2 +- site-cookbooks/kosmos_rsk/metadata.rb | 2 +- site-cookbooks/kosmos_rsk/recipes/rskj.rb | 2 ++ site-cookbooks/kosmos_rsk/test/integration/rskj/rskj_test.rb | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/site-cookbooks/kosmos_rsk/attributes/default.rb b/site-cookbooks/kosmos_rsk/attributes/default.rb index 654a567..ae59908 100644 --- a/site-cookbooks/kosmos_rsk/attributes/default.rb +++ b/site-cookbooks/kosmos_rsk/attributes/default.rb @@ -1,4 +1,4 @@ -node.default['rskj']['version'] = '5.3.0~jammy' +node.default['rskj']['version'] = '7.0.0~jammy' node.default['rskj']['network'] = 'testnet' node.default['rskj']['nginx']['domain'] = nil diff --git a/site-cookbooks/kosmos_rsk/metadata.rb b/site-cookbooks/kosmos_rsk/metadata.rb index 6065952..b6351ea 100644 --- a/site-cookbooks/kosmos_rsk/metadata.rb +++ b/site-cookbooks/kosmos_rsk/metadata.rb @@ -9,4 +9,4 @@ issues_url 'https://gitea.kosmos.org/kosmos/chef/issues' source_url 'https://gitea.kosmos.org/kosmos/chef' depends 'firewall' -depends 'kosmos_openresty' +# depends 'kosmos_openresty' diff --git a/site-cookbooks/kosmos_rsk/recipes/rskj.rb b/site-cookbooks/kosmos_rsk/recipes/rskj.rb index ea9a7ab..4299b00 100644 --- a/site-cookbooks/kosmos_rsk/recipes/rskj.rb +++ b/site-cookbooks/kosmos_rsk/recipes/rskj.rb @@ -19,6 +19,8 @@ apt_repository 'rskj' do key '5EED9995C84A49BC02D4F507DF10691F518C7BEA' end +apt_package 'openjdk-17-jdk' + apt_package 'rskj' do response_file 'rskj-preseed.cfg.erb' response_file_variables network: node['rskj']['network'] 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 dc9cff5..aec46de 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 '5.3.0~jammy' } + its('version') { should eq '7.0.0~jammy' } end describe service('rsk') do