This replaces the deprecated redis cookbook. Compiles the latest version of Redis, currently 7.0.11 Refs #488
18 lines
410 B
Ruby
18 lines
410 B
Ruby
module SELinux
|
|
module Cookbook
|
|
module BooleanHelpers
|
|
def selinux_bool(bool)
|
|
if ['on', 'true', '1', true, 1].include?(bool)
|
|
'on'
|
|
elsif ['off', 'false', '0', false, 0].include?(bool)
|
|
'off'
|
|
else
|
|
raise ArgumentError, "selinux_bool: Invalid selinux boolean value #{bool}"
|
|
end
|
|
end
|
|
|
|
module_function :selinux_bool
|
|
end
|
|
end
|
|
end
|