Skip to content
Snippets Groups Projects
Commit 1561d903 authored by Oscar Vestlund's avatar Oscar Vestlund Committed by Andreas Kempe
Browse files

workstation: add cups and configure urd

parent aaad5af6
No related branches found
No related tags found
No related merge requests found
# Printer configuration file for CUPS v2.3.3op2
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
NextPrinterId 2
<DefaultPrinter urd>
PrinterId 1
UUID urn:uuid:f6844cbf-8d41-3eff-54a8-a066ccec28ac
AuthInfoRequired none
Info Lysators skrivare i ~
Location ~
MakeModel Xerox Phaser 6510
DeviceURI ipp://urd.lysator.liu.se
State Idle
StateTime 1637073873
ConfigTime 1636588699
Type 8425692
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
Attribute marker-colors \#000000,#FFFF00,#FF00FF,#00FFFF,none,#000000,#FFFF00,#FF00FF,#00FFFF
Attribute marker-levels 82,96,97,97,-1,100,100,100,100
Attribute marker-low-levels 20,20,20,20,0,0,0,0,0
Attribute marker-high-levels 100,100,100,100,99,100,100,100,100
Attribute marker-names Black Toner Cartridge, PN Genuine Xerox(R) Toner;SNDF007D00150F0000,Yellow Toner Cartridge, PN Genuine Xerox(R) Toner;SN63007D00100F0000,Magenta Toner Cartridge, PN Genuine Xerox(R) Toner;SN8F007D00080F0000,Cyan Toner Cartridge, PN Genuine Xerox(R) Toner;SN03007D00300F0000,Waste Cartridge, PN 108R01416,Black Drum Cartridge, PN 108R01420,Yellow Drum Cartridge, PN 108R01419,Magenta Drum Cartridge, PN 108R01418,Cyan Drum Cartridge, PN 108R01417
Attribute marker-types toner,toner,toner,toner,waste-toner,opc,opc,opc,opc
Attribute marker-change-time 1637073873
</DefaultPrinter>
This diff is collapsed.
# denna klass ser till så att konfigurationsfiler till cups är där de ska.
class freebsd::workstation::printer {
package {
[
'cups',
]:
ensure => installed,
}
-> file_line { 'Enable cups':
path => '/etc/rc.conf',
line => 'cupsd_enable="YES"',
}
-> file { '/usr/local/etc/cups/ppd/urd.ppd':
source => 'puppet:///modules/freebsd/workstation/printing/xrx6510.ppd',
owner => 'root',
group => 'cups',
mode => '0640',
}
-> file { '/usr/local/etc/cups/printers.conf':
source => 'puppet:///modules/freebsd/workstation/printing/printers.conf',
owner => 'root',
group => 'cups',
mode => '0640',
}
~> exec { '/usr/sbin/service cupsd restart':
refreshonly => true,
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment