Skip to content

Commit

Permalink
Fix rb-secor
Browse files Browse the repository at this point in the history
  • Loading branch information
malvads committed Jan 22, 2025
1 parent 4d4192b commit aba2abf
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
40 changes: 39 additions & 1 deletion resources/providers/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,23 @@
mode 0770
action :create
end


directory "/var/log/secor" do
owner "secor"
group "secor"
mode 0770
recursive true
action :create
end

directory "/var/log/secor-vault" do
owner "secor"
group "secor"
mode 0770
recursive true
action :create
end

template "/var/secor/secor.common.properties" do
source "secor.common.properties.erb"
cookbook 'secor'
Expand All @@ -97,7 +113,29 @@
variables(:s3_hostname => s3_hostname, :s3_user => s3_user, :s3_pass => s3_pass, :s3_bucket => s3_bucket)
notifies :restart, "service[rb-secor]", :delayed if manager_services["secor"]
end

template "/etc/sysconfig/secor" do
source "mem_sysconfig.erb"
cookbook 'secor'
owner "secor"
group "secor"
mode 0644
retries 2
variables(:memory => node['redborder']['memory_services']['secor']['memory'])
notifies :restart, "service[rb-secor]", :delayed if manager_services["secor"]
end

template "/etc/sysconfig/secor-vault" do
source "mem_sysconfig.erb"
cookbook 'secor'
owner "secor"
group "secor"
mode 0644
retries 2
variables(:memory => node['redborder']['memory_services']['secor-vault']['memory'])
notifies :restart, "service[rb-secor-vault]", :delayed if manager_services["secor-vault"]
end

template "/var/secor/log4j.prod.properties" do
source "secor_log4j.prod.properties.erb"
cookbook 'secor'
Expand Down
1 change: 1 addition & 0 deletions resources/templates/default/mem_sysconfig.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MEMTOTAL=<%=@memory%>

0 comments on commit aba2abf

Please sign in to comment.