Use older Redis cookbook, install on bitcoin-2
This commit is contained in:
19
cookbooks/selinux_policy/resources/boolean.rb
Normal file
19
cookbooks/selinux_policy/resources/boolean.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
# A resource for managing SELinux Booleans
|
||||
|
||||
property :value, [true, false]
|
||||
property :force, [true, false], default: false
|
||||
property :allow_disabled, [true, false], default: true
|
||||
|
||||
# Set and persist
|
||||
action :setpersist do
|
||||
sebool(new_resource, true)
|
||||
end
|
||||
|
||||
# Set for now, without persisting
|
||||
action :set do
|
||||
sebool(new_resource, false)
|
||||
end
|
||||
|
||||
action_class do
|
||||
include Chef::SELinuxPolicy::Helpers
|
||||
end
|
||||
Reference in New Issue
Block a user