1# A SAMPLE CONFIGURATION FILE FOR AMD 2 3############################################################################## 4# GLOBAL OPTIONS SECTION (must be first in amd.conf file) 5# For most options, the default value is listed first, but see amd.conf(5) 6[ global ] 7# (amd -n) 8normalize_hostnames = no | yes 9# do we want to strip domain names from hostnames or not? 10domain_strip = yes | no 11# (amd -p) 12print_pid = no | yes 13pid_file = /dev/stdout | /var/run/amd.pid 14# (amd -r) 15restart_mounts = no | yes 16unmount_on_exit = no | yes 17forced_unmounts = no | yes 18# (amd -a) 19auto_dir = /a 20# duration in seconds that a looked up name remain cached (amd -c) 21cache_duration = 300 22# (amd -d) 23local_domain = cs.columbia.edu 24# (amd -k) 25karch = sun4m 26# (amd -A) 27arch = sun4 28# if you don't like autoconf picking up "sunos5" as the os-type, override it 29# (amd -O) 30os = sos5 31# (amd -o) 32osver = 2.5.1 33# full os name 34full_os = linux-2.2.5 35# OS vendor 36vendor = redhat 37# if you print_version after setting up "os", it will show it. (amd -v) 38print_version = no | yes 39# (amd -l) 40log_file = /dev/stderr | /var/log/amd | syslog[:facility] 41# should we truncate the log file on startup? 42truncate_log = no | yes 43# NFS (RPC) retry interval/counter, in tenths of secs (amd -t interval.counter) 44nfs_retry_interval = 8 45nfs_retransmit_counter = 11 (eleven retransmission attempts) 46# The next four are the same as the above two, but allow you to set global 47# values for all UDP vs. TCP mounts separately. 48nfs_retry_interval_udp = 16 49nfs_retransmit_counter_udp = 22 50nfs_retry_interval_tcp = 4 51nfs_retransmit_counter_tcp = 5 52# These two are specific to Amd's top-level (NFSv2/udp) mounts 53# and they can also be set separately. 54nfs_retry_interval_toplvl = 6 55nfs_retransmit_counter_toplvl = 8 56# NFS attribute cache value for Amd's automount points 57# (some OSs use this parameter in units of seconds, and others in 0.1 seconds) 58# See README.attrcache for important information about this parameter. 59auto_attrcache = 0 60# (amd -w) 61dismount_interval = 120 62# (amd -y) 63nis_domain = nisDom-CS.columbia.edu 64# (amd -x) 65log_options = fatal,error,user,warn,info,map,stats,all 66# (amd -D) 67debug_options = all,amq,daemon,fork,full,hrtime,info,mem,mtab,\ 68 str,readdir,test,trace,xdrtrace 69# path for mtab file during mtab debug mode 70debug_mtab_file = /tmp/mnttab 71# (amd -S) 72plock = yes | no 73# should browsable maps show number of entries to df/statfs (default=no) 74show_statfs_entries = no | yes 75# (hpux) cluster name (amd -C) 76cluster = ??? 77# LDAP (Lightweight Directory Access Protocol) options 78ldap_base = "ou=Marketing, o=AMD Ltd, c=US" 79ldap_hostports = ldap.your.domain:389 80ldap_cache_seconds = 0 81ldap_cache_maxmem = 131072 82ldap_proto_version = 2 83# default base name for hesiod maps 84hesiod_base = automount 85# interval to check if a reload of any maps is needed 86map_reload_interval = 3600 87# alternate RPC program number to register with the port mapper 88portmap_program = 300019-300029 89# Ask for a different Amq RPC port (both UDP and TCP). 90# If set to 0 (default), Amd will pick a port automatically. 91preferred_amq_port = 1234 92# use fully qualified host names 93fully_qualified_hosts = no | yes 94# force NFS version or NFS protocol 95nfs_vers = 2 | 3 96nfs_proto = udp | tcp 97# perform Amq service checks via tcpwrappers (tcpd/libwrap) 98use_tcpwrappers = yes | no 99# allow NFS requests from insecure (>=1024) ports 100nfs_allow_insecure_port = no | yes 101# accept local NFS packets from any local interface, not just 127.0.0.1 102nfs_allow_any_interface = no | yes 103# address used for local NFS mount and RPC server (default to localhost) 104localhost_address = foo.example.com | 192.168.1.2 105# number of seconds to timeout before map returns output 106exec_map_timeout = 10 107# normalize multiple/trailing slashes or not? 108normalize_slashes = yes | no 109 110############################################################################## 111# these 8 global options can be overridden by each map individually 112browsable_dirs = no | yes | full 113map_options = cache:=all 114map_type = file|hesiod|ndbm|nis|nisplus|passwd|union|ldap 115# any string that will be used to override to the map /defaults entry 116map_defaults = opts:=nosuid,rw,intr,bg,noquota;type:=link 117mount_type = nfs | autofs 118autofs_use_lofs = yes | no 119search_path = /etc/local:/etc/amdmaps:/misc/yp 120# selectors are not recognized by default in the /defaults entry 121selectors_in_defaults = no | yes 122############################################################################## 123 124############################################################################## 125# DEFINE AN AMD MOUNT POINT 126[ /home ] 127# map name must be defined, all else are optional 128map_name = /etc/amd.home | amd.home 129map_options = cache:=all 130# if map type is not defined, will search all map types (default) 131map_type = file|hesiod|ndbm|nis|nisplus|passwd|union|ldap 132search_path = /etc/local:/etc/amdmaps:/misc/yp 133# an amd or autofs mount point 134mount_type = nfs | autofs 135browsable_dirs = yes | no 136# an optional tag to be used with amd -T tag. untagged entries are always 137# used. Tagged ones get used only if specified with "amd -T" 138tag = test 139 140############################################################################## 141# DEFINE ANOTHER AMD MOUNT POINT 142[ /src ] 143map_name = /usr/local/lib/amdmaps/amu.src 144# regular amd (nfs) mount point (default) 145mount_type = nfs 146# any string that will be used as prefix to the map /defaults entry 147# this overrides what's defined in [global] 148map_defaults = type:=nfs 149 150############################################################################## 151# DEFINE ANOTHER AMD MOUNT POINT 152[ /test ] 153map_name = /etc/lookup-entry.sh 154# an executable map type 155map_type = exec 156 157############################################################################## 158# DEFINE A SUN SYNTAX MOUNT POINT 159[ /proj ] 160map_name = /etc/amd.proj 161# does this map use Sun Automounter map syntax? 162sun_map_syntax = yes 163 164############################################################################## 165