Fixed cups::client for OpenBSD 4.9 and newer.
This commit is contained in:
parent
706c81645a
commit
ed93dec665
1 changed files with 8 additions and 5 deletions
|
@ -22,9 +22,12 @@ class cups::client {
|
|||
case $operatingsystem {
|
||||
openbsd: {
|
||||
exec { "cups-enable":
|
||||
command => "echo y | cups-enable",
|
||||
command => $operatingsystemrelease ? {
|
||||
/4\.[1-8]/ => "echo y | cups-enable",
|
||||
default => "sh -c '. /etc/rc.d/cupsd check ; rc_pre'",
|
||||
},
|
||||
path => "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin",
|
||||
user => root,
|
||||
user => "root",
|
||||
creates => "/usr/bin/lpr.pre-cups",
|
||||
require => Package["cups"],
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue