WIP RSK cookbook
This commit is contained in:
38
site-cookbooks/kosmos_rsk/recipes/rskj.rb
Normal file
38
site-cookbooks/kosmos_rsk/recipes/rskj.rb
Normal 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
|
||||
Reference in New Issue
Block a user