Added support for OpenBSD into cups::client class.
This commit is contained in:
parent
4a5e98f558
commit
7b74a06ed6
1 changed files with 16 additions and 1 deletions
|
@ -12,10 +12,25 @@ class cups::client {
|
||||||
content => template("cups/client.conf.erb"),
|
content => template("cups/client.conf.erb"),
|
||||||
mode => 0644,
|
mode => 0644,
|
||||||
owner => root,
|
owner => root,
|
||||||
group => lp,
|
group => $operatingsystem ? {
|
||||||
|
openbsd => wheel,
|
||||||
|
default => lp,
|
||||||
|
},
|
||||||
require => Package["cups"],
|
require => Package["cups"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case $operatingsystem {
|
||||||
|
openbsd: {
|
||||||
|
exec { "cups-enable":
|
||||||
|
command => "echo y | cups-enable",
|
||||||
|
path => "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin",
|
||||||
|
user => root,
|
||||||
|
unless => "readlink /usr/bin/lpr | egrep '^/usr/local/bin/lpr$'",
|
||||||
|
require => Package["cups"],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install cups server
|
# Install cups server
|
||||||
|
|
Loading…
Add table
Reference in a new issue