Add cups
This commit is contained in:
parent
6cd4cd2b05
commit
7ff816bea1
4 changed files with 337 additions and 0 deletions
|
|
@ -14,6 +14,7 @@
|
|||
- role: fablab
|
||||
- role: hardware
|
||||
- role: docker
|
||||
- role: cups
|
||||
vars:
|
||||
auth:
|
||||
sudo:
|
||||
|
|
|
|||
290
packer/ansible/roles/cups/files/kopierviech.ppd
Normal file
290
packer/ansible/roles/cups/files/kopierviech.ppd
Normal file
|
|
@ -0,0 +1,290 @@
|
|||
*PPD-Adobe: "4.3"
|
||||
*%
|
||||
*% For information on using this, and to obtain the required backend
|
||||
*% script, consult http://www.openprinting.org/
|
||||
*%
|
||||
*% This file is published under the GNU General Public License
|
||||
*%
|
||||
*% PPD-O-MATIC (4.0.0 or newer) generated this PPD file. It is for use with
|
||||
*% all programs and environments which use PPD files for dealing with
|
||||
*% printer capability information. The printer must be configured with the
|
||||
*% "foomatic-rip" backend filter script of Foomatic 4.0.0 or newer. This
|
||||
*% file and "foomatic-rip" work together to support PPD-controlled printer
|
||||
*% driver option access with all supported printer drivers and printing
|
||||
*% spoolers.
|
||||
*%
|
||||
*% To save this file on your disk, wait until the download has completed
|
||||
*% (the animation of the browser logo must stop) and then use the
|
||||
*% "Save as..." command in the "File" menu of your browser or in the
|
||||
*% pop-up manu when you click on this document with the right mouse button.
|
||||
*% DO NOT cut and paste this file into an editor with your mouse. This can
|
||||
*% introduce additional line breaks which lead to unexpected results.
|
||||
*%
|
||||
*% You may save this file as 'Epson-LQ-850-lq850.ppd'
|
||||
*%
|
||||
*%
|
||||
*FormatVersion: "4.3"
|
||||
*FileVersion: "1.1"
|
||||
*LanguageVersion: English
|
||||
*LanguageEncoding: ISOLatin1
|
||||
*PCFileName: "LQ850.PPD"
|
||||
*Manufacturer: "Epson"
|
||||
*Product: "(LQ-850)"
|
||||
*cupsVersion: 1.0
|
||||
*cupsManualCopies: True
|
||||
*cupsModelNumber: 2
|
||||
*cupsFilter: "application/vnd.cups-postscript 100 foomatic-rip"
|
||||
*cupsFilter: "application/vnd.cups-pdf 0 foomatic-rip"
|
||||
*%pprRIP: foomatic-rip other
|
||||
*ModelName: "Epson LQ-850"
|
||||
*ShortNickName: "Epson LQ-850 lq850"
|
||||
*NickName: "Epson LQ-850 Foomatic/lq850 (recommended)"
|
||||
*PSVersion: "(3010.000) 550"
|
||||
*PSVersion: "(3010.000) 651"
|
||||
*PSVersion: "(3010.000) 652"
|
||||
*PSVersion: "(3010.000) 653"
|
||||
*PSVersion: "(3010.000) 704"
|
||||
*PSVersion: "(3010.000) 705"
|
||||
*PSVersion: "(3010.000) 800"
|
||||
*PSVersion: "(3010.000) 815"
|
||||
*PSVersion: "(3010.000) 850"
|
||||
*PSVersion: "(3010.000) 860"
|
||||
*PSVersion: "(3010.000) 861"
|
||||
*PSVersion: "(3010.000) 862"
|
||||
*PSVersion: "(3010.000) 863"
|
||||
*PSVersion: "(3010.000) 864"
|
||||
*PSVersion: "(3010.000) 870"
|
||||
*LanguageLevel: "3"
|
||||
*ColorDevice: False
|
||||
*DefaultColorSpace: Gray
|
||||
*FileSystem: False
|
||||
*Throughput: "1"
|
||||
*LandscapeOrientation: Plus90
|
||||
*TTRasterizer: Type42
|
||||
*1284DeviceID: "DRV:Dlq850,R1,M0,F1,P0,TG;"
|
||||
|
||||
*driverName lq850: ""
|
||||
*driverType G/Ghostscript built-in: ""
|
||||
*driverUrl: "http://www.ghostscript.com/"
|
||||
*driverObsolete: False
|
||||
*driverManufacturerSupplied: False
|
||||
*driverFreeSoftware: True
|
||||
|
||||
|
||||
|
||||
|
||||
*HWMargins: 18 36 18 36
|
||||
*VariablePaperSize: True
|
||||
*MaxMediaWidth: 100000
|
||||
*MaxMediaHeight: 100000
|
||||
*NonUIOrderDependency: 100 AnySetup *CustomPageSize
|
||||
*CustomPageSize True: "pop pop pop pop pop
|
||||
%% FoomaticRIPOptionSetting: PageSize=Custom"
|
||||
*End
|
||||
*FoomaticRIPOptionSetting PageSize=Custom: " -dDEVICEWIDTHPOINTS=0 -dD&&
|
||||
EVICEHEIGHTPOINTS=0"
|
||||
*End
|
||||
*ParamCustomPageSize Width: 1 points 36 100000
|
||||
*ParamCustomPageSize Height: 2 points 36 100000
|
||||
*ParamCustomPageSize Orientation: 3 int 0 0
|
||||
*ParamCustomPageSize WidthOffset: 4 points 0 0
|
||||
*ParamCustomPageSize HeightOffset: 5 points 0 0
|
||||
|
||||
*FoomaticIDs: Epson-LQ-850 lq850
|
||||
*FoomaticRIPCommandLine: "gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPA&&
|
||||
USE -dNOMEDIAATTRS -dNOINTERPOLATE -sDEVICE=lq850%A%Z -sOutputFile=- -&&
|
||||
"
|
||||
*End
|
||||
|
||||
*OpenGroup: General/General
|
||||
|
||||
*OpenUI *PageSize/Page Size: PickOne
|
||||
*FoomaticRIPOption PageSize: enum CmdLine A
|
||||
*OrderDependency: 100 AnySetup *PageSize
|
||||
*DefaultPageSize: A4
|
||||
*PageSize Letter/US Letter: "%% FoomaticRIPOptionSetting: PageSize=Letter"
|
||||
*FoomaticRIPOptionSetting PageSize=Letter: " -dDEVICEWIDTHPOINTS=612 -&&
|
||||
dDEVICEHEIGHTPOINTS=792"
|
||||
*End
|
||||
*PageSize A4/A4: "%% FoomaticRIPOptionSetting: PageSize=A4"
|
||||
*FoomaticRIPOptionSetting PageSize=A4: " -dDEVICEWIDTHPOINTS=595 -dDEV&&
|
||||
ICEHEIGHTPOINTS=842"
|
||||
*End
|
||||
*PageSize 3x5/3x5: "%% FoomaticRIPOptionSetting: PageSize=3x5"
|
||||
*FoomaticRIPOptionSetting PageSize=3x5: " -dDEVICEWIDTHPOINTS=216 -dDE&&
|
||||
VICEHEIGHTPOINTS=360"
|
||||
*End
|
||||
*PageSize 4x6/4x6: "%% FoomaticRIPOptionSetting: PageSize=4x6"
|
||||
*FoomaticRIPOptionSetting PageSize=4x6: " -dDEVICEWIDTHPOINTS=288 -dDE&&
|
||||
VICEHEIGHTPOINTS=432"
|
||||
*End
|
||||
*PageSize 5x7/5x7: "%% FoomaticRIPOptionSetting: PageSize=5x7"
|
||||
*FoomaticRIPOptionSetting PageSize=5x7: " -dDEVICEWIDTHPOINTS=360 -dDE&&
|
||||
VICEHEIGHTPOINTS=504"
|
||||
*End
|
||||
*PageSize 5x8/5x8: "%% FoomaticRIPOptionSetting: PageSize=5x8"
|
||||
*FoomaticRIPOptionSetting PageSize=5x8: " -dDEVICEWIDTHPOINTS=360 -dDE&&
|
||||
VICEHEIGHTPOINTS=576"
|
||||
*End
|
||||
*PageSize 6x8/6x8: "%% FoomaticRIPOptionSetting: PageSize=6x8"
|
||||
*FoomaticRIPOptionSetting PageSize=6x8: " -dDEVICEWIDTHPOINTS=432 -dDE&&
|
||||
VICEHEIGHTPOINTS=576"
|
||||
*End
|
||||
*PageSize 8x10/8x10: "%% FoomaticRIPOptionSetting: PageSize=8x10"
|
||||
*FoomaticRIPOptionSetting PageSize=8x10: " -dDEVICEWIDTHPOINTS=576 -dD&&
|
||||
EVICEHEIGHTPOINTS=720"
|
||||
*End
|
||||
*PageSize 8x12/8x12: "%% FoomaticRIPOptionSetting: PageSize=8x12"
|
||||
*FoomaticRIPOptionSetting PageSize=8x12: " -dDEVICEWIDTHPOINTS=576 -dD&&
|
||||
EVICEHEIGHTPOINTS=864"
|
||||
*End
|
||||
*PageSize 11x14/11x14: "%% FoomaticRIPOptionSetting: PageSize=11x14"
|
||||
*FoomaticRIPOptionSetting PageSize=11x14: " -dDEVICEWIDTHPOINTS=792 -d&&
|
||||
DEVICEHEIGHTPOINTS=1008"
|
||||
*End
|
||||
*PageSize 11x14.Transverse/14x11: "%% FoomaticRIPOptionSetting: PageSize=11x14.Transverse"
|
||||
*FoomaticRIPOptionSetting PageSize=11x14.Transverse: " -dDEVICEWIDTHPO&&
|
||||
INTS=1008 -dDEVICEHEIGHTPOINTS=792"
|
||||
*End
|
||||
*PageSize 16x20/16x20: "%% FoomaticRIPOptionSetting: PageSize=16x20"
|
||||
*FoomaticRIPOptionSetting PageSize=16x20: " -dDEVICEWIDTHPOINTS=1152 -&&
|
||||
dDEVICEHEIGHTPOINTS=1440"
|
||||
*End
|
||||
*PageSize 16x24/16x24: "%% FoomaticRIPOptionSetting: PageSize=16x24"
|
||||
*FoomaticRIPOptionSetting PageSize=16x24: " -dDEVICEWIDTHPOINTS=1152 -&&
|
||||
dDEVICEHEIGHTPOINTS=1728"
|
||||
*End
|
||||
*PageSize 210x305mm/210x305mm (8.3x12): "%% FoomaticRIPOptionSetting: PageSize=210x305mm"
|
||||
*FoomaticRIPOptionSetting PageSize=210x305mm: " -dDEVICEWIDTHPOINTS=59&&
|
||||
5 -dDEVICEHEIGHTPOINTS=864"
|
||||
*End
|
||||
*PageSize 378x279mm.Transverse/US Standard Fanfold (14.875x11): "%% FoomaticRIPOptionSetting: PageSize=378x279mm.Transverse"
|
||||
*FoomaticRIPOptionSetting PageSize=378x279mm.Transverse: " -dDEVICEWID&&
|
||||
THPOINTS=1071 -dDEVICEHEIGHTPOINTS=792"
|
||||
*End
|
||||
*PageSize A3/A3: "%% FoomaticRIPOptionSetting: PageSize=A3"
|
||||
*FoomaticRIPOptionSetting PageSize=A3: " -dDEVICEWIDTHPOINTS=842 -dDEV&&
|
||||
ICEHEIGHTPOINTS=1191"
|
||||
*End
|
||||
*PageSize FanFoldGerman/German Standard Fanfold (8.5x12): "%% FoomaticRIPOptionSetting: PageSize=FanFoldGerman"
|
||||
*FoomaticRIPOptionSetting PageSize=FanFoldGerman: " -dDEVICEWIDTHPOINT&&
|
||||
S=612 -dDEVICEHEIGHTPOINTS=864"
|
||||
*End
|
||||
*PageSize Legal/US Legal: "%% FoomaticRIPOptionSetting: PageSize=Legal"
|
||||
*FoomaticRIPOptionSetting PageSize=Legal: " -dDEVICEWIDTHPOINTS=612 -d&&
|
||||
DEVICEHEIGHTPOINTS=1008"
|
||||
*End
|
||||
*PageSize SuperB/Super B (13x19): "%% FoomaticRIPOptionSetting: PageSize=SuperB"
|
||||
*FoomaticRIPOptionSetting PageSize=SuperB: " -dDEVICEWIDTHPOINTS=936 -&&
|
||||
dDEVICEHEIGHTPOINTS=1368"
|
||||
*End
|
||||
*CloseUI: *PageSize
|
||||
|
||||
*OpenUI *PageRegion: PickOne
|
||||
*OrderDependency: 100 AnySetup *PageRegion
|
||||
*DefaultPageRegion: A4
|
||||
*PageRegion Letter/US Letter: "%% FoomaticRIPOptionSetting: PageSize=Letter"
|
||||
*PageRegion A4/A4: "%% FoomaticRIPOptionSetting: PageSize=A4"
|
||||
*PageRegion 3x5/3x5: "%% FoomaticRIPOptionSetting: PageSize=3x5"
|
||||
*PageRegion 4x6/4x6: "%% FoomaticRIPOptionSetting: PageSize=4x6"
|
||||
*PageRegion 5x7/5x7: "%% FoomaticRIPOptionSetting: PageSize=5x7"
|
||||
*PageRegion 5x8/5x8: "%% FoomaticRIPOptionSetting: PageSize=5x8"
|
||||
*PageRegion 6x8/6x8: "%% FoomaticRIPOptionSetting: PageSize=6x8"
|
||||
*PageRegion 8x10/8x10: "%% FoomaticRIPOptionSetting: PageSize=8x10"
|
||||
*PageRegion 8x12/8x12: "%% FoomaticRIPOptionSetting: PageSize=8x12"
|
||||
*PageRegion 11x14/11x14: "%% FoomaticRIPOptionSetting: PageSize=11x14"
|
||||
*PageRegion 11x14.Transverse/14x11: "%% FoomaticRIPOptionSetting: PageSize=11x14.Transverse"
|
||||
*PageRegion 16x20/16x20: "%% FoomaticRIPOptionSetting: PageSize=16x20"
|
||||
*PageRegion 16x24/16x24: "%% FoomaticRIPOptionSetting: PageSize=16x24"
|
||||
*PageRegion 210x305mm/210x305mm (8.3x12): "%% FoomaticRIPOptionSetting: PageSize=210x305mm"
|
||||
*PageRegion 378x279mm.Transverse/US Standard Fanfold (14.875x11): "%% FoomaticRIPOptionSetting: PageSize=378x279mm.Transverse"
|
||||
*PageRegion A3/A3: "%% FoomaticRIPOptionSetting: PageSize=A3"
|
||||
*PageRegion FanFoldGerman/German Standard Fanfold (8.5x12): "%% FoomaticRIPOptionSetting: PageSize=FanFoldGerman"
|
||||
*PageRegion Legal/US Legal: "%% FoomaticRIPOptionSetting: PageSize=Legal"
|
||||
*PageRegion SuperB/Super B (13x19): "%% FoomaticRIPOptionSetting: PageSize=SuperB"
|
||||
*CloseUI: *PageRegion
|
||||
|
||||
*DefaultImageableArea: A4
|
||||
*ImageableArea Letter/US Letter: "18 36 594 756"
|
||||
*ImageableArea A4/A4: "18 36 577 806"
|
||||
*ImageableArea 3x5/3x5: "18 36 198 324"
|
||||
*ImageableArea 4x6/4x6: "18 36 270 396"
|
||||
*ImageableArea 5x7/5x7: "18 36 342 468"
|
||||
*ImageableArea 5x8/5x8: "18 36 342 540"
|
||||
*ImageableArea 6x8/6x8: "18 36 414 540"
|
||||
*ImageableArea 8x10/8x10: "18 36 558 684"
|
||||
*ImageableArea 8x12/8x12: "18 36 558 828"
|
||||
*ImageableArea 11x14/11x14: "18 36 774 972"
|
||||
*ImageableArea 11x14.Transverse/14x11: "18 36 990 756"
|
||||
*ImageableArea 16x20/16x20: "18 36 1134 1404"
|
||||
*ImageableArea 16x24/16x24: "18 36 1134 1692"
|
||||
*ImageableArea 210x305mm/210x305mm (8.3x12): "18 36 577 828"
|
||||
*ImageableArea 378x279mm.Transverse/US Standard Fanfold (14.875x11): "18 36 1053 756"
|
||||
*ImageableArea A3/A3: "18 36 824 1155"
|
||||
*ImageableArea FanFoldGerman/German Standard Fanfold (8.5x12): "18 36 594 828"
|
||||
*ImageableArea Legal/US Legal: "18 36 594 972"
|
||||
*ImageableArea SuperB/Super B (13x19): "18 36 918 1332"
|
||||
|
||||
*DefaultPaperDimension: A4
|
||||
*PaperDimension Letter/US Letter: "612 792"
|
||||
*PaperDimension A4/A4: "595 842"
|
||||
*PaperDimension 3x5/3x5: "216 360"
|
||||
*PaperDimension 4x6/4x6: "288 432"
|
||||
*PaperDimension 5x7/5x7: "360 504"
|
||||
*PaperDimension 5x8/5x8: "360 576"
|
||||
*PaperDimension 6x8/6x8: "432 576"
|
||||
*PaperDimension 8x10/8x10: "576 720"
|
||||
*PaperDimension 8x12/8x12: "576 864"
|
||||
*PaperDimension 11x14/11x14: "792 1008"
|
||||
*PaperDimension 11x14.Transverse/14x11: "1008 792"
|
||||
*PaperDimension 16x20/16x20: "1152 1440"
|
||||
*PaperDimension 16x24/16x24: "1152 1728"
|
||||
*PaperDimension 210x305mm/210x305mm (8.3x12): "595 864"
|
||||
*PaperDimension 378x279mm.Transverse/US Standard Fanfold (14.875x11): "1071 792"
|
||||
*PaperDimension A3/A3: "842 1191"
|
||||
*PaperDimension FanFoldGerman/German Standard Fanfold (8.5x12): "612 864"
|
||||
*PaperDimension Legal/US Legal: "612 1008"
|
||||
*PaperDimension SuperB/Super B (13x19): "936 1368"
|
||||
|
||||
*CloseGroup: General
|
||||
|
||||
|
||||
*% Generic boilerplate PPD stuff as standard PostScript fonts and so on
|
||||
|
||||
*DefaultFont: Courier
|
||||
*Font AvantGarde-Book: Standard "(001.006S)" Standard ROM
|
||||
*Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM
|
||||
*Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM
|
||||
*Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM
|
||||
*Font Bookman-Demi: Standard "(001.004S)" Standard ROM
|
||||
*Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM
|
||||
*Font Bookman-Light: Standard "(001.004S)" Standard ROM
|
||||
*Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM
|
||||
*Font Courier: Standard "(002.004S)" Standard ROM
|
||||
*Font Courier-Bold: Standard "(002.004S)" Standard ROM
|
||||
*Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM
|
||||
*Font Courier-Oblique: Standard "(002.004S)" Standard ROM
|
||||
*Font Helvetica: Standard "(001.006S)" Standard ROM
|
||||
*Font Helvetica-Bold: Standard "(001.007S)" Standard ROM
|
||||
*Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM
|
||||
*Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM
|
||||
*Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM
|
||||
*Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM
|
||||
*Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM
|
||||
*Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM
|
||||
*Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM
|
||||
*Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM
|
||||
*Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM
|
||||
*Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM
|
||||
*Font Palatino-Bold: Standard "(001.005S)" Standard ROM
|
||||
*Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM
|
||||
*Font Palatino-Italic: Standard "(001.005S)" Standard ROM
|
||||
*Font Palatino-Roman: Standard "(001.005S)" Standard ROM
|
||||
*Font Symbol: Special "(001.007S)" Special ROM
|
||||
*Font Times-Bold: Standard "(001.007S)" Standard ROM
|
||||
*Font Times-BoldItalic: Standard "(001.009S)" Standard ROM
|
||||
*Font Times-Italic: Standard "(001.007S)" Standard ROM
|
||||
*Font Times-Roman: Standard "(001.007S)" Standard ROM
|
||||
*Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
|
||||
*Font ZapfDingbats: Special "(001.004S)" Standard ROM
|
||||
|
||||
18
packer/ansible/roles/cups/tasks/main.yml
Normal file
18
packer/ansible/roles/cups/tasks/main.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
- block:
|
||||
- name: install cups
|
||||
apt:
|
||||
name: cups
|
||||
|
||||
- name: copy ppd file
|
||||
copy:
|
||||
src: files/kopierviech.ppd
|
||||
dest: /etc/cups/ppd/kopierviech.ppd
|
||||
|
||||
- name: configure cups
|
||||
template:
|
||||
src: printers.conf.j2
|
||||
dest: /etc/cups/printers.conf
|
||||
|
||||
tags:
|
||||
- cups
|
||||
28
packer/ansible/roles/cups/templates/printers.conf.j2
Normal file
28
packer/ansible/roles/cups/templates/printers.conf.j2
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# Printer configuration file for CUPS v2.2.1
|
||||
# Written by cupsd
|
||||
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
|
||||
<Printer kopierviech>
|
||||
UUID urn:uuid:1dbeb741-74bb-3bc8-6db1-46f96cb2e82f
|
||||
Info kopierviech
|
||||
Location Kyocera Mita KM-1650 KM-1650
|
||||
MakeModel Epson LQ-850 Foomatic/lq850 (recommended)
|
||||
{#DeviceURI ipp://kopierviech.lab.fablab-nea.de#}
|
||||
DeviceURI dnssd://kopierviech._pdl-datastream._tcp.local/
|
||||
State Idle
|
||||
StateTime 1541805049
|
||||
ConfigTime 1541805149
|
||||
Type 8433668
|
||||
Accepting Yes
|
||||
Shared No
|
||||
JobSheets none none
|
||||
QuotaPeriod 0
|
||||
PageLimit 0
|
||||
KLimit 0
|
||||
OpPolicy default
|
||||
ErrorPolicy retry-job
|
||||
Attribute marker-colors none,none
|
||||
Attribute marker-levels -1,-1
|
||||
Attribute marker-names Toner Container,Waste Toner Box
|
||||
Attribute marker-types toner,waste-toner
|
||||
Attribute marker-change-time 1541806630
|
||||
</Printer>
|
||||
Loading…
Add table
Add a link
Reference in a new issue