WIP RSK cookbook

This commit is contained in:
2021-06-13 16:58:53 +02:00
parent d7af1a57d1
commit 2063f5c953
14 changed files with 308 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
#
# Cookbook:: kosmos_rsk
# Recipe:: rskj
#
group 'rsk' do
gid 888
end
user 'rsk' do
uid 888
gid 888
home '/var/lib/rsk'
shell '/sbin/nologin'
end
apt_repository 'rskj' do
uri 'ppa:rsksmart/rskj'
key '5EED9995C84A49BC02D4F507DF10691F518C7BEA'
end
apt_package 'rskj' do
response_file 'rskj-preseed.cfg.erb'
response_file_variables network: node['rskj']['network']
options '--assume-yes'
end
service "rsk" do
action [:enable, :start]
end
include_recipe 'firewall'
firewall_rule 'rskj' do
port [4444,50505]
protocol :tcp
command :allow
end