diff options
Diffstat (limited to 'lib/puppet/type/file/selcontext.rb')
-rw-r--r-- | lib/puppet/type/file/selcontext.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/puppet/type/file/selcontext.rb b/lib/puppet/type/file/selcontext.rb index 22e3080b1..8ef51366a 100644 --- a/lib/puppet/type/file/selcontext.rb +++ b/lib/puppet/type/file/selcontext.rb @@ -50,7 +50,7 @@ module Puppet end end - Puppet.type(:file).newproperty(:seluser, :parent => Puppet::SELFileContext) do + Puppet::Type.type(:file).newproperty(:seluser, :parent => Puppet::SELFileContext) do desc "What the SELinux user component of the context of the file should be. Any valid SELinux user component is accepted. For example ``user_u``. If not specified it defaults to the value returned by matchpathcon for @@ -61,7 +61,7 @@ module Puppet defaultto { self.retrieve_default_context(:seluser) } end - Puppet.type(:file).newproperty(:selrole, :parent => Puppet::SELFileContext) do + Puppet::Type.type(:file).newproperty(:selrole, :parent => Puppet::SELFileContext) do desc "What the SELinux role component of the context of the file should be. Any valid SELinux role component is accepted. For example ``role_r``. If not specified it defaults to the value returned by matchpathcon for @@ -72,7 +72,7 @@ module Puppet defaultto { self.retrieve_default_context(:selrole) } end - Puppet.type(:file).newproperty(:seltype, :parent => Puppet::SELFileContext) do + Puppet::Type.type(:file).newproperty(:seltype, :parent => Puppet::SELFileContext) do desc "What the SELinux type component of the context of the file should be. Any valid SELinux type component is accepted. For example ``tmp_t``. If not specified it defaults to the value returned by matchpathcon for @@ -83,7 +83,7 @@ module Puppet defaultto { self.retrieve_default_context(:seltype) } end - Puppet.type(:file).newproperty(:selrange, :parent => Puppet::SELFileContext) do + Puppet::Type.type(:file).newproperty(:selrange, :parent => Puppet::SELFileContext) do desc "What the SELinux range component of the context of the file should be. Any valid SELinux range component is accepted. For example ``s0`` or ``SystemHigh``. If not specified it defaults to the value returned by |