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
|
@ -21,12 +21,15 @@ class cups::client {
|
||||||
|
|
||||||
case $operatingsystem {
|
case $operatingsystem {
|
||||||
openbsd: {
|
openbsd: {
|
||||||
exec { "cups-enable":
|
exec { "cups-enable":
|
||||||
command => "echo y | cups-enable",
|
command => $operatingsystemrelease ? {
|
||||||
path => "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin",
|
/4\.[1-8]/ => "echo y | cups-enable",
|
||||||
user => root,
|
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",
|
||||||
creates => "/usr/bin/lpr.pre-cups",
|
creates => "/usr/bin/lpr.pre-cups",
|
||||||
require => Package["cups"],
|
require => Package["cups"],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue