diff options
author | Sean E. Millichamp <sean@bruenor.org> | 2008-09-30 14:34:48 -0400 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2008-10-03 14:33:33 +1000 |
commit | c8314821a2bd0f1bb60397492735d3775836416f (patch) | |
tree | e08412900469599a8a7584138b556ffa8a341a2b /lib | |
parent | 772e9b217aafb22da3a7572085f631da54274937 (diff) | |
download | puppet-c8314821a2bd0f1bb60397492735d3775836416f.tar.gz puppet-c8314821a2bd0f1bb60397492735d3775836416f.tar.xz puppet-c8314821a2bd0f1bb60397492735d3775836416f.zip |
Add detected defaults for existing SELinux file properties
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/type/file/selcontext.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/puppet/type/file/selcontext.rb b/lib/puppet/type/file/selcontext.rb index 6e36a024a..a344f20ac 100644 --- a/lib/puppet/type/file/selcontext.rb +++ b/lib/puppet/type/file/selcontext.rb @@ -59,18 +59,21 @@ module Puppet desc "What the SELinux User context of the file should be." @event = :file_changed + defaultto { self.retrieve_default_context(:seluser) } end Puppet.type(:file).newproperty(:selrole, :parent => Puppet::SELFileContext) do desc "What the SELinux Role context of the file should be." @event = :file_changed + defaultto { self.retrieve_default_context(:selrole) } end Puppet.type(:file).newproperty(:seltype, :parent => Puppet::SELFileContext) do desc "What the SELinux Type context of the file should be." @event = :file_changed + defaultto { self.retrieve_default_context(:seltype) } end end |