Changeset 517 for trunk/dnsdb.conf


Ignore:
Timestamp:
05/31/13 17:23:13 (11 years ago)
Author:
Kris Deugau
Message:

/trunk

Review, clean up, and refiddle configuration handling:

  • Drop %config hash as a global, and replace it with a local hash in new(), for much more elegant per-object configuration handling
  • Replace references to %config with $self->
  • Remove obsolete loadConfig() sub; new() can call the lightly revised cfgload() directly
  • Revise cfgload() to accept a hashref to put the parsed configuration entries in
  • Clean up example config file, including new rpc_iplist and max_fcgi_requests options

Plus a few miscellaneous extra bits of cleanup:

  • Remove obsolete, never-used %def hash.
  • Only try to disconnect the database handle in DESTROY if it was active in the first place
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dnsdb.conf

    r216 r517  
    22
    33# Database connection info
    4 #dbname=dsndb
    5 #dbuser=dnsdb
    6 #dbpass=dnsdbpwd
    7 #dbhost=dnsdbhost
     4#dbname = dsndb
     5#dbuser = dnsdb
     6#dbpass = dnsdbpwd
     7#dbhost = dnsdbhost
    88
    9 # SOA defaults.  contact and prins may only contain a-z, 0-9, . and -,
    10 # the rest are expected to be numeric.
    11 #contact=hostmaster.example.com
    12 #prins=ns1.example.com
    13 #soattl=7200
    14 #refresh=86400
    15 #retry=14400
    16 #expire=28800
    17 #minttl=900
    18 #ttl=900
    19      
    209# Mail settings
    21 #mailhost=smtp.example.com
    22 #mailnotify=dns@example.com
    23 #mailsender=hostmaster@example.com
    24 #mailname=Example Corp DNS Administrator
    25 #orgname=Example Corp
    26 #domain=example.com
     10#mailhost = smtp.example.com
     11#mailnotify = dns@example.com
     12#mailsender = hostmaster@example.com
     13#mailname = Example Corp DNS Administrator
     14#orgname = Example Corp
     15#domain = example.com
    2716     
    2817# session - note this is fed directly to CGI::Session
    2918# timeout supports (s)econds, (m)inutes, (h)ours, (d)ays, (w)eeks, (M)months, or (y)ears
    30 #timeout=3h
    31 #sessiondir=/var/lib/dnsdb
     19#timeout = 3h
     20#sessiondir = /var/lib/dnsdb
    3221
    33 # misc
     22## misc
     23
    3424# flag to indicate if failed changes should be logged
    35 #log_failures=0
     25#log_failures = 1
    3626# number of entries to display in lists
    37 #perpage=25
     27#perpage = 25
     28# maximum number of FCGI requests to serve before reloading/restarting FCGI
     29#max_fcgi_requests = 10
     30# path for per-zone cache files for export
     31#exportcache = /var/cache/dnsdb
     32
     33# RPC ACL
     34# A comma-separated list starting with an abstract "system name"
     35# (passed by an RPC caller), followed by a list of IP addresses
     36# allowed to make RPC calls with that name.
     37# Finer-grained access control must be handled by the caller.
     38#rpc_iplist = billing, 192.168.0.11
     39#rpc_iplist = billing, 172.12.12.12
     40#rpc_iplist = custportal, 192.168.1.12, 192.168.1.13
Note: See TracChangeset for help on using the changeset viewer.