root / pykota / trunk / conf / pykota.conf.sample @ 859

Revision 859, 3.5 kB (checked in by jalet, 21 years ago)

The port on which the Quota Storage Sever is listening can now
be set in the configuration file (see sample).
Better error handling if PygreSQL is not installed.
Improved documentation.
Version number changed to 1.02alpha

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1# PyKota sample configuration file
2#
3# Copy this file in cups' configuration directory
4# usually /etc/cups under the name pykota.conf
5#
6# PyKota - Print Quotas for CUPS
7#
8# (c) 2003 Jerome Alet <alet@librelogiciel.com>
9# You're welcome to redistribute this software under the
10# terms of the GNU General Public Licence version 2.0
11# or, at your option, any higher version.
12#
13# You can read the complete GNU GPL in the file COPYING
14# which should come along with this software, or visit
15# the Free Software Foundation's WEB site http://www.fsf.org
16#
17# $Id$
18#
19
20[global]
21# Storage backend for quotas
22# only PostgreSQL is supported
23# Ldap, MySQL, Berkeley are planned
24storagebackend: postgresql
25
26# Quota Storage Server hostname (and port)
27# e.g. db.mydomain.com:5432
28storageserver: localhost
29
30#
31# name of the Quota Storage Database
32storagename: pykota
33
34# Quota Storage administrator's and normal user's names and passwords
35storageadmin: pykotaadmin
36storageuser: pykotauser
37# storageadminpw: Comment out if unused, or set to Quota Storage admin password
38# storageuserpw: Comment out if unused, or set to Quota Storage user password
39
40# Where to log ?
41# supported values : stderr, system (system means syslog, but don't use 'syslog' here)
42# if the value is not set then the default SYSTEM applies.
43logger: system
44
45# Mail server to use to warn users
46# If the value is not set then localhost is used.
47smtpserver: localhost
48
49# Accounting method
50# Only LAZY is currently supported, see documentation
51method: lazy
52
53# Print Quota administrator
54# These values can be set either globally or per printer or both.
55# If both are defined, the printer option has priority.
56# If these values are not set, the default admin root
57# and the default adminmail root@localhost are used.
58admin: Jerome Alet
59adminmail: alet@librelogiciel.com
60
61#
62# Who should we send an email to in case a quota is reached ?
63# possible values are : DevNull, User, Admin, Both
64# The Both value means that the User and the Admin will receive
65# an email message.
66# The DevNull value means no email message will be sent.
67# This value can be set either globally or per printer or both.
68# If both are defined, the printer option has priority.
69# If the value is not set, then the default BOTH applies.
70mailto: both
71
72#
73# Grace delay in days
74# This value can be set either globally or per printer or both.
75# If both are defined, the printer option has priority.
76# If the value is not set then the default seven (7) days applies.
77gracedelay: 7
78
79# one section per printer, or no other section at all if all options
80# are defined globally
81[lp]
82
83# How to query the lp printer for its page counter
84# Only snmp(community, oid) and external(command) are supported
85# e.g. :
86# requester: external(snmpget -c public -Ov %(printer)s 43.10.2.1.4.1.1 | cut -f 2,2 -d " ")
87# and :
88# requester: snmp(public, 43.10.2.1.4.1.1)
89# are equivalent
90# This value can be set either globally or per printer or both.
91# If both are defined, the printer option has priority.
92#
93# NB : The SNMP oid 43.10.2.1.4.1.1 works on HP Laserjet Printers, but it may
94#      be different with other brands, refer to your printer's documentation
95#      for details.
96requester: external(snmpget -c public -Ov %(printer)s 43.10.2.1.4.1.1 | cut -f 2,2 -d " ")
97
98# Default policy for inexistant users (e.g. root)
99# either allow or deny
100# This value can be set either globally or per printer or both.
101# If both are defined, the printer option has priority.
102# If the value is not set then the default policy ALLOW applies.
103policy: allow
Note: See TracBrowser for help on using the browser.