Added support for RHEL and did some syntax cleaning
Assume that "RedHat" also works where "CentOS" does.
This commit is contained in:
parent
e9aae1dcf6
commit
24ecb51f6f
63 changed files with 544 additions and 497 deletions
|
@ -12,17 +12,17 @@ class cups::client {
|
|||
content => template("cups/client.conf.erb"),
|
||||
mode => "0644",
|
||||
owner => root,
|
||||
group => $operatingsystem ? {
|
||||
group => $::operatingsystem ? {
|
||||
openbsd => wheel,
|
||||
default => lp,
|
||||
},
|
||||
require => Package["cups"],
|
||||
}
|
||||
|
||||
case $operatingsystem {
|
||||
case $::operatingsystem {
|
||||
openbsd: {
|
||||
exec { "cups-enable":
|
||||
command => $operatingsystemrelease ? {
|
||||
command => $::operatingsystemrelease ? {
|
||||
/4\.[1-8]/ => "echo y | cups-enable",
|
||||
default => "sh -c '. /etc/rc.d/cupsd check ; rc_pre'",
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue