Fixed cups::client for OpenBSD 4.9 and newer.

This commit is contained in:
Timo Mkinen 2012-03-12 11:29:15 +02:00
parent 706c81645a
commit ed93dec665

View file

@ -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"],
} }
} }
} }