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