xref: /netbsd-src/external/bsd/am-utils/dist/scripts/amd.conf-sample (revision a53f50b9b44dc9467ccc9c464999b1d1c509cb0c)
1*a53f50b9Schristos# A SAMPLE CONFIGURATION FILE FOR AMD
2*a53f50b9Schristos
3*a53f50b9Schristos##############################################################################
4*a53f50b9Schristos# GLOBAL OPTIONS SECTION (must be first in amd.conf file)
5*a53f50b9Schristos# For most options, the default value is listed first, but see amd.conf(5)
6*a53f50b9Schristos[ global ]
7*a53f50b9Schristos# (amd -n)
8*a53f50b9Schristosnormalize_hostnames =		no | yes
9*a53f50b9Schristos# do we want to strip domain names from hostnames or not?
10*a53f50b9Schristosdomain_strip =			yes | no
11*a53f50b9Schristos# (amd -p)
12*a53f50b9Schristosprint_pid =			no | yes
13*a53f50b9Schristospid_file =			/dev/stdout | /var/run/amd.pid
14*a53f50b9Schristos# (amd -r)
15*a53f50b9Schristosrestart_mounts =		no | yes
16*a53f50b9Schristosunmount_on_exit =		no | yes
17*a53f50b9Schristosforced_unmounts =		no | yes
18*a53f50b9Schristos# (amd -a)
19*a53f50b9Schristosauto_dir =			/a
20*a53f50b9Schristos# duration in seconds that a looked up name remain cached (amd -c)
21*a53f50b9Schristoscache_duration =		300
22*a53f50b9Schristos# (amd -d)
23*a53f50b9Schristoslocal_domain =			cs.columbia.edu
24*a53f50b9Schristos# (amd -k)
25*a53f50b9Schristoskarch =				sun4m
26*a53f50b9Schristos# (amd -A)
27*a53f50b9Schristosarch =				sun4
28*a53f50b9Schristos# if you don't like autoconf picking up "sunos5" as the os-type, override it
29*a53f50b9Schristos# (amd -O)
30*a53f50b9Schristosos =				sos5
31*a53f50b9Schristos# (amd -o)
32*a53f50b9Schristososver =				2.5.1
33*a53f50b9Schristos# full os name
34*a53f50b9Schristosfull_os =			linux-2.2.5
35*a53f50b9Schristos# OS vendor
36*a53f50b9Schristosvendor =			redhat
37*a53f50b9Schristos# if you print_version after setting up "os", it will show it. (amd -v)
38*a53f50b9Schristosprint_version =			no | yes
39*a53f50b9Schristos# (amd -l)
40*a53f50b9Schristoslog_file =			/dev/stderr | /var/log/amd | syslog[:facility]
41*a53f50b9Schristos# should we truncate the log file on startup?
42*a53f50b9Schristostruncate_log =			no | yes
43*a53f50b9Schristos# NFS (RPC) retry interval/counter, in tenths of secs (amd -t interval.counter)
44*a53f50b9Schristosnfs_retry_interval =		8
45*a53f50b9Schristosnfs_retransmit_counter =	11 (eleven retransmission attempts)
46*a53f50b9Schristos# The next four are the same as the above two, but allow you to set global
47*a53f50b9Schristos# values for all UDP vs. TCP mounts separately.
48*a53f50b9Schristosnfs_retry_interval_udp =	16
49*a53f50b9Schristosnfs_retransmit_counter_udp =	22
50*a53f50b9Schristosnfs_retry_interval_tcp =	4
51*a53f50b9Schristosnfs_retransmit_counter_tcp =	5
52*a53f50b9Schristos# These two are specific to Amd's top-level (NFSv2/udp) mounts
53*a53f50b9Schristos# and they can also be set separately.
54*a53f50b9Schristosnfs_retry_interval_toplvl =	6
55*a53f50b9Schristosnfs_retransmit_counter_toplvl =	8
56*a53f50b9Schristos# NFS attribute cache value for Amd's automount points
57*a53f50b9Schristos# (some OSs use this parameter in units of seconds, and others in 0.1 seconds)
58*a53f50b9Schristos# See README.attrcache for important information about this parameter.
59*a53f50b9Schristosauto_attrcache =		0
60*a53f50b9Schristos# (amd -w)
61*a53f50b9Schristosdismount_interval =		120
62*a53f50b9Schristos# (amd -y)
63*a53f50b9Schristosnis_domain =			nisDom-CS.columbia.edu
64*a53f50b9Schristos# (amd -x)
65*a53f50b9Schristoslog_options =			fatal,error,user,warn,info,map,stats,all
66*a53f50b9Schristos# (amd -D)
67*a53f50b9Schristosdebug_options =			all,defaults,test,amq,daemon,fork,\
68*a53f50b9Schristos				full,hrtime,info,mem,mtab,str,readdir,trace,xdrtrace
69*a53f50b9Schristos# path for mtab file during mtab debug mode
70*a53f50b9Schristosdebug_mtab_file =               /tmp/mnttab
71*a53f50b9Schristos# (amd -S)
72*a53f50b9Schristosplock =				yes | no
73*a53f50b9Schristos# should browsable maps show number of entries to df/statfs (default=no)
74*a53f50b9Schristosshow_statfs_entries =		no | yes
75*a53f50b9Schristos# (hpux) cluster name (amd -C)
76*a53f50b9Schristoscluster =			???
77*a53f50b9Schristos# LDAP (Lightweight Directory Access Protocol) options
78*a53f50b9Schristosldap_base =			"ou=Marketing, o=AMD Ltd, c=US"
79*a53f50b9Schristosldap_hostports =		ldap.your.domain:389
80*a53f50b9Schristosldap_cache_seconds =		0
81*a53f50b9Schristosldap_cache_maxmem =		131072
82*a53f50b9Schristosldap_proto_version =		2
83*a53f50b9Schristos# default base name for hesiod maps
84*a53f50b9Schristoshesiod_base =			automount
85*a53f50b9Schristos# interval to check if a reload of any maps is needed
86*a53f50b9Schristosmap_reload_interval =		3600
87*a53f50b9Schristos# alternate RPC program number to register with the port mapper
88*a53f50b9Schristosportmap_program =		300019-300029
89*a53f50b9Schristos# Ask for a different Amq RPC port (both UDP and TCP).
90*a53f50b9Schristos# If set to 0 (default), Amd will pick a port automatically.
91*a53f50b9Schristospreferred_amq_port =		1234
92*a53f50b9Schristos# use fully qualified host names
93*a53f50b9Schristosfully_qualified_hosts =		no | yes
94*a53f50b9Schristos# force NFS version or NFS protocol
95*a53f50b9Schristosnfs_vers =			2 | 3
96*a53f50b9Schristosnfs_proto =			udp | tcp
97*a53f50b9Schristos# perform Amq service checks via tcpwrappers (tcpd/libwrap)
98*a53f50b9Schristosuse_tcpwrappers =		yes | no
99*a53f50b9Schristos# allow NFS requests from insecure (>=1024) ports
100*a53f50b9Schristosnfs_allow_insecure_port =	no | yes
101*a53f50b9Schristos# accept local NFS packets from any local interface, not just 127.0.0.1
102*a53f50b9Schristosnfs_allow_any_interface =	no | yes
103*a53f50b9Schristos# address used for local NFS mount and RPC server (default to localhost)
104*a53f50b9Schristoslocalhost_address =		foo.example.com | 192.168.1.2
105*a53f50b9Schristos# number of seconds to timeout before map returns output
106*a53f50b9Schristosexec_map_timeout =		10
107*a53f50b9Schristos# normalize multiple/trailing slashes or not?
108*a53f50b9Schristosnormalize_slashes =		yes | no
109*a53f50b9Schristos
110*a53f50b9Schristos##############################################################################
111*a53f50b9Schristos# these 9 global options can be overridden by each map individually
112*a53f50b9Schristosbrowsable_dirs =		no | yes | full
113*a53f50b9Schristosmap_options =			cache:=all
114*a53f50b9Schristosmap_type =			file|hesiod|ndbm|nis|nisplus|passwd|union|ldap
115*a53f50b9Schristos# any string that will be used to override to the map /defaults entry
116*a53f50b9Schristosmap_defaults =			opts:=nosuid,rw,intr,bg,noquota;type:=link
117*a53f50b9Schristosmount_type =			nfs | autofs
118*a53f50b9Schristosautofs_use_lofs =		yes | no
119*a53f50b9Schristossearch_path =			/etc/local:/etc/amdmaps:/misc/yp
120*a53f50b9Schristos# selectors are not recognized by default in the /defaults entry
121*a53f50b9Schristosselectors_in_defaults =		no | yes
122*a53f50b9Schristos# does this map use Sun Automounter map syntax?
123*a53f50b9Schristossun_map_syntax =		no | yes
124*a53f50b9Schristos##############################################################################
125*a53f50b9Schristos
126*a53f50b9Schristos##############################################################################
127*a53f50b9Schristos# DEFINE AN AMD MOUNT POINT
128*a53f50b9Schristos[ /home ]
129*a53f50b9Schristos# map name must be defined, all else are optional
130*a53f50b9Schristosmap_name =			/etc/amd.home | amd.home
131*a53f50b9Schristosmap_options =			cache:=all
132*a53f50b9Schristos# if map type is not defined, will search all map types (default)
133*a53f50b9Schristosmap_type =			file|hesiod|ndbm|nis|nisplus|passwd|union|ldap
134*a53f50b9Schristossearch_path =			/etc/local:/etc/amdmaps:/misc/yp
135*a53f50b9Schristos# an amd or autofs mount point
136*a53f50b9Schristosmount_type =			nfs | autofs
137*a53f50b9Schristosbrowsable_dirs =		yes | no
138*a53f50b9Schristos# an optional tag to be used with amd -T tag. untagged entries are always
139*a53f50b9Schristos# used.  Tagged ones get used only if specified with "amd -T"
140*a53f50b9Schristostag =				test
141*a53f50b9Schristos
142*a53f50b9Schristos##############################################################################
143*a53f50b9Schristos# DEFINE ANOTHER AMD MOUNT POINT
144*a53f50b9Schristos[ /src ]
145*a53f50b9Schristosmap_name =			/usr/local/lib/amdmaps/amu.src
146*a53f50b9Schristos# regular amd (nfs) mount point (default)
147*a53f50b9Schristosmount_type =			nfs
148*a53f50b9Schristos# any string that will be used as prefix to the map /defaults entry
149*a53f50b9Schristos# this overrides what's defined in [global]
150*a53f50b9Schristosmap_defaults =			type:=nfs
151*a53f50b9Schristos
152*a53f50b9Schristos##############################################################################
153*a53f50b9Schristos# DEFINE ANOTHER AMD MOUNT POINT
154*a53f50b9Schristos[ /test ]
155*a53f50b9Schristosmap_name =			/etc/lookup-entry.sh
156*a53f50b9Schristos# an executable map type
157*a53f50b9Schristosmap_type =			exec
158*a53f50b9Schristos
159*a53f50b9Schristos##############################################################################
160*a53f50b9Schristos# DEFINE A SUN SYNTAX MOUNT POINT
161*a53f50b9Schristos[ /proj ]
162*a53f50b9Schristosmap_name =			/etc/amd.proj
163*a53f50b9Schristos# does this map use Sun Automounter map syntax?
164*a53f50b9Schristossun_map_syntax =		yes
165*a53f50b9Schristos
166*a53f50b9Schristos##############################################################################
167