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

Revision 853, 3.3 kB (checked in by jalet, 21 years ago)

Default hard coded options are now used if they are not set in the
configuration file.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
RevLine 
[695]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
25storageserver: localhost
26storagename: pykota
27storageadmin: pykotaadmin
28storageuser: pykotauser
[806]29# storageadminpw: Comment out if unused, or set to Quota Storage admin password
30# storageuserpw: Comment out if unused, or set to Quota Storage user password
[695]31
32# Where to log ?
[707]33# supported values : stderr, system (system means syslog, but don't use 'syslog' here)
[853]34# if the value is not set then the default SYSTEM applies.
[782]35logger: system
[695]36
37# Mail server to use to warn users
[853]38# If the value is not set then localhost is used.
[695]39smtpserver: localhost
[806]40
[695]41# Accounting method
42# Only LAZY is currently supported, see documentation
43method: lazy
[806]44
45# Print Quota administrator
46# These values can be set either globally or per printer or both.
47# If both are defined, the printer option has priority.
[853]48# If these values are not set, the default admin root
49# and the default adminmail root@localhost are used.
[806]50admin: Jerome Alet
51adminmail: alet@librelogiciel.com
52
[695]53#
[852]54# Who should we send an email to in case a quota is reached ?
55# possible values are : DevNull, User, Admin, Both
56# The Both value means that the User and the Admin will receive
57# an email message.
58# The DevNull value means no email message will be sent.
59# This value can be set either globally or per printer or both.
60# If both are defined, the printer option has priority.
[853]61# If the value is not set, then the default BOTH applies.
[852]62mailto: both
63
64#
[695]65# Grace delay in days
[806]66# This value can be set either globally or per printer or both.
67# If both are defined, the printer option has priority.
[853]68# If the value is not set then the default seven (7) days applies.
[695]69gracedelay: 7
70
[853]71# one section per printer, or no other section at all if all options
72# are defined globally
[695]73[lp]
[806]74
[695]75# How to query the lp printer for its page counter
[780]76# Only snmp(community, oid) and external(command) are supported
77# e.g. :
[794]78# requester: external(snmpget -c public -Ov %(printer)s 43.10.2.1.4.1.1 | cut -f 2,2 -d " ")
[780]79# and :
[783]80# requester: snmp(public, 43.10.2.1.4.1.1)
[794]81# are equivalent
[806]82# This value can be set either globally or per printer or both.
83# If both are defined, the printer option has priority.
[830]84#
85# NB : The SNMP oid 43.10.2.1.4.1.1 works on HP Laserjet Printers, but it may
86#      be different with other brands, refer to your printer's documentation
87#      for details.
[787]88requester: external(snmpget -c public -Ov %(printer)s 43.10.2.1.4.1.1 | cut -f 2,2 -d " ")
[806]89
[695]90# Default policy for inexistant users (e.g. root)
[713]91# either allow or deny
[806]92# This value can be set either globally or per printer or both.
93# If both are defined, the printer option has priority.
[853]94# If the value is not set then the default policy ALLOW applies.
[713]95policy: allow
Note: See TracBrowser for help on using the browser.