[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.6-1-356-g5718585

James Turnbull james at lovedthanlost.net
Fri Jan 23 14:21:13 UTC 2009


The following commit has been merged in the master branch:
commit c8314821a2bd0f1bb60397492735d3775836416f
Author: Sean E. Millichamp <sean at bruenor.org>
Date:   Tue Sep 30 14:34:48 2008 -0400

    Add detected defaults for existing SELinux file properties

diff --git a/lib/puppet/type/file/selcontext.rb b/lib/puppet/type/file/selcontext.rb
index 6e36a02..a344f20 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

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list