Skip to content

Commit

Permalink
Check for cluster install before creating cgroups
Browse files Browse the repository at this point in the history
  • Loading branch information
malvads committed Nov 28, 2023
1 parent 326f096 commit c6daa4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,10 @@
# action (node["redborder"]["services"]["redborder-cep"] ? [:add, :register] : [:remove, :deregister])
#end

cluster_installed = `[ -e /etc/redborder/cluster-installed.txt ] && echo 1 || echo 0`

rbcgroup_config "Configure cgroups" do
action :add
action (cluster_installed == 1 ? :add : nil)
end

# Determine external
Expand Down

0 comments on commit c6daa4e

Please sign in to comment.