Hello, 

Am in the process of creating some puppet configs for the likes of ntp etc 
and was wondering what people did when it came to the likes of selinux. 

class ntp { 

file { '/etc/ntp.conf': 
       source 
       owner 
       group 
       mode 
} 

} 

are all common to both  but if wanted to ensure the selinux context set 
then would add 

  selrange 
  seltype 
  selrole 
  seluser 

but then this kinda breaks the commonality between OS 

so .... question are these types ignored if run on solaris (since they are 
not valid) or do i need to create another class say ntp::linux 
which inherits the base class and extends it with the selinux settings. 

ie 

class ntp::linux inherits ntp { 

    File['/etc/ntpconf'] { 
      selrange 
      seltype 
      selrole 
      seluser 
    } 
} 

then use that ... 

rgds 

Matt B. 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/Su3BMAgmU8YJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to