Skip to content

Commit

Permalink
adding memservices check as a ruby call
Browse files Browse the repository at this point in the history
  • Loading branch information
ljblancoredborder committed Jan 31, 2024
1 parent 5bcc55a commit f3972d7
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions resources/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#
#
# Cookbook Name:: manager
# Recipe:: default
#
Expand All @@ -11,11 +12,15 @@
include_recipe 'rb-manager::configure'
include_recipe 'rb-manager::configure_cron_tasks'
include_recipe 'rb-manager::configure_journald'
# include_recipe 'rb-manager::configure_memservices'

ruby_block 'Running Rb_update_cgroups.rb' do
block do
system('ruby /usr/lib/redborder/scripts/rb_update_cgroups.rb')
ruby_block 'Checking to update cgroups of mem_services.rb' do
block do
require_relative '/usr/lib/redborder/scripts/rb_configure_cgroups.rb'
puts RedBorder::Cgroups::Checker.check_memservices_cgroups()
unless RedBorder::Cgroups::Checker.check_memservices_cgroups()
system('ruby /usr/lib/redborder/scripts/rb_configure_cgroups.rb')
end
action :run
end
action :run
end

0 comments on commit f3972d7

Please sign in to comment.