79 lines
2.6 KiB
Text
79 lines
2.6 KiB
Text
# -*- coding: utf-8 -*-
|
|
|
|
info["owner"] = "root"
|
|
info["group"] = "lp"
|
|
info["mode"] = 0644
|
|
|
|
include("ldap_conn")
|
|
|
|
comment_start = "#"
|
|
|
|
header("Configuration de partage cups pour le serveur cups et l'intranet")
|
|
|
|
|
|
out("""# Which protocols will we use to discover printers on the network?
|
|
# Can use DNSSD and/or CUPS, or 'none' for neither.
|
|
BrowseRemoteProtocols dnssd cups
|
|
# Upgraded from cups:
|
|
# Defaults from 1.0.41: dnssd cups
|
|
|
|
# Which protocols will we use to broadcast shared local printers to the network?
|
|
# Can use DNSSD and/or CUPS, or 'none' for neither.
|
|
# Only CUPS is actually supported, as DNSSD is done by CUPS itself (we ignore
|
|
# DNSSD in this directive).
|
|
# BrowseLocalProtocols none
|
|
|
|
# Settings of this directive apply to both BrowseRemoteProtocols and
|
|
# BrowseLocalProtocols.
|
|
# Can use DNSSD and/or CUPS, or 'none' for neither.
|
|
BrowseProtocols CUPS
|
|
|
|
# Only browse remote printers from selected servers
|
|
# BrowseAllow all
|
|
# BrowseAllow cups.example.com
|
|
# BrowseAllow 192.168.1.12
|
|
# BrowseAllow 192.168.1.0/24
|
|
# BrowseAllow 192.168.1.0/255.255.255.0
|
|
BrowseAllow 10.231.136.0/24
|
|
# Use BrowsePoll to poll a particular CUPS server
|
|
# BrowsePoll cups.example.com
|
|
# BrowsePoll cups.example.com:631
|
|
# BrowsePoll cups.example.com:631/version=1.1""")
|
|
if has ("cups-service-client"):
|
|
out("""
|
|
BrowsePoll cups.adm.crans.org:631""")
|
|
out("""
|
|
# CreateIPPPrinterQueues Yes
|
|
|
|
# The AutoShutdown directive specifies whether cups-browsed should
|
|
# automatically terminate when it has no local raw queues set up
|
|
# pointing to any discovered remote printers (auto shutdown
|
|
# mode). Setting it to "On" activates the auto-shutdown mode, setting
|
|
# it to "Off" deactiivates it (the default). The special mode "avahi"
|
|
# turns auto shutdown off while avahi-daemon is running and on when
|
|
# avahi-daemon stops. This allows running cups-browsed on-demand when
|
|
# avahi-daemon is run on-demand.
|
|
|
|
# AutoShutdown Off
|
|
# AutoShutdown On
|
|
# AutoShutdown avahi
|
|
|
|
# The AutoShutdownTimeout directive specifies after how many seconds
|
|
# without local raw queues set up pointing to any discovered remote
|
|
# printers cups-browsed should actually shut down in auto shutdown
|
|
# mode. Default is 30 seconds, 0 means immediate shutdown.
|
|
|
|
# AutoShutdownTimeout 30
|
|
|
|
# Unknown directives are ignored, also unknown values.
|
|
|
|
# Please check and edit the following lines, especially if you have Linux
|
|
# machines with CUPS 1.5.x and older in your network.
|
|
|
|
# If you edit anything in this file, please remember to restart cups-browsed
|
|
# (or reboot the system) afterwards.
|
|
|
|
# Please remove the "#" in the beginning of the following line to make the
|
|
# local printers available to clients running CUPS 1.5.x or older.
|
|
#BrowseLocalProtocols cups""")
|
|
|