summaryrefslogtreecommitdiffstats
path: root/lib/puppet/type/selmodule.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/type/selmodule.rb')
-rw-r--r--lib/puppet/type/selmodule.rb68
1 files changed, 34 insertions, 34 deletions
diff --git a/lib/puppet/type/selmodule.rb b/lib/puppet/type/selmodule.rb
index 90b28b094..240d6e6d1 100644
--- a/lib/puppet/type/selmodule.rb
+++ b/lib/puppet/type/selmodule.rb
@@ -3,52 +3,52 @@
#
Puppet::Type.newtype(:selmodule) do
- @doc = "Manages loading and unloading of SELinux policy modules
- on the system. Requires SELinux support. See man semodule(8)
- for more information on SELinux policy modules."
+ @doc = "Manages loading and unloading of SELinux policy modules
+ on the system. Requires SELinux support. See man semodule(8)
+ for more information on SELinux policy modules."
- ensurable
+ ensurable
- newparam(:name) do
- desc "The name of the SELinux policy to be managed. You should not
- include the customary trailing .pp extension."
- isnamevar
- end
+ newparam(:name) do
+ desc "The name of the SELinux policy to be managed. You should not
+ include the customary trailing .pp extension."
+ isnamevar
+ end
- newparam(:selmoduledir) do
+ newparam(:selmoduledir) do
- desc "The directory to look for the compiled pp module file in.
- Currently defaults to /usr/share/selinux/targeted. If selmodulepath
- is not specified the module will be looked for in this directory in a
- in a file called NAME.pp, where NAME is the value of the name parameter."
+ desc "The directory to look for the compiled pp module file in.
+ Currently defaults to /usr/share/selinux/targeted. If selmodulepath
+ is not specified the module will be looked for in this directory in a
+ in a file called NAME.pp, where NAME is the value of the name parameter."
- defaultto "/usr/share/selinux/targeted"
- end
+ defaultto "/usr/share/selinux/targeted"
+ end
- newparam(:selmodulepath) do
+ newparam(:selmodulepath) do
- desc "The full path to the compiled .pp policy module. You only need to use
- this if the module file is not in the directory pointed at by selmoduledir."
+ desc "The full path to the compiled .pp policy module. You only need to use
+ this if the module file is not in the directory pointed at by selmoduledir."
- end
+ end
- newproperty(:syncversion) do
+ newproperty(:syncversion) do
- desc "If set to ``true``, the policy will be reloaded if the
- version found in the on-disk file differs from the loaded
- version. If set to ``false`` (the default) the the only check
- that will be made is if the policy is loaded at all or not."
+ desc "If set to ``true``, the policy will be reloaded if the
+ version found in the on-disk file differs from the loaded
+ version. If set to ``false`` (the default) the the only check
+ that will be made is if the policy is loaded at all or not."
- newvalue(:true)
- newvalue(:false)
- end
+ newvalue(:true)
+ newvalue(:false)
+ end
- autorequire(:file) do
- if self[:selmodulepath]
- [self[:selmodulepath]]
- else
- ["#{self[:selmoduledir]}/#{self[:name]}.pp"]
- end
+ autorequire(:file) do
+ if self[:selmodulepath]
+ [self[:selmodulepath]]
+ else
+ ["#{self[:selmoduledir]}/#{self[:name]}.pp"]
end
+ end
end