Update cookbooks and add wordpress cookbook
This commit is contained in:
13
cookbooks/selinux/libraries/selinux_service_helpers.rb
Normal file
13
cookbooks/selinux/libraries/selinux_service_helpers.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
module SELinuxServiceHelpers
|
||||
def self.selinux_bool(bool)
|
||||
if ['on', 'true', '1', true, 1].include? bool
|
||||
'on'
|
||||
elsif ['off', 'false', '0', false, 0].include? bool
|
||||
'off'
|
||||
else
|
||||
Chef::Log.warn "Not a valid boolean value: #{bool}"
|
||||
nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user