Subversion Repositories configs

Rev

Rev 34 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
9 - 1
#
2
# Define default options for autofs.
3
#
4
[ autofs ]
5
#
6
# master_map_name - default map name for the master map.
7
#
8
#master_map_name = auto.master
9
#
10
# timeout - set the default mount timeout in secons. The internal
11
#	    program default is 10 minutes, but the default installed
12
#	    configuration overrides this and sets the timeout to 5
13
#	    minutes to be consistent with earlier autofs releases.
14
#
15
timeout = 300
16
#
17
# negative_timeout - set the default negative timeout for
18
# 		     failed mount attempts (default 60).
19
#
20
#negative_timeout = 60
21
#
22
# mount_wait - time to wait for a response from mount(8).
23
# 	       Setting this timeout can cause problems when
24
# 	       mount would otherwise wait for a server that
25
# 	       is temporarily unavailable, such as when it's
26
# 	       restarting. The default setting (-1) of waiting
27
# 	       for mount(8) usually results in a wait of around
28
# 	       3 minutes.
29
#
30
#mount_wait = -1
31
#
32
# umount_wait - time to wait for a response from umount(8).
33
#
34
#umount_wait = 12
35
#
36
# browse_mode - maps are browsable by default.
37
#
38
browse_mode = no
39
#
40
# mount_nfs_default_protocol - specify the default protocol used by
41
# 			       mount.nfs(8). Since we can't identify
42
# 			       the default automatically we need to
43
# 			       set it in our configuration.
44
#
45
#mount_nfs_default_protocol = 3
46
mount_nfs_default_protocol = 4
47
#
48
# append_options - append to global options instead of replace.
49
#
50
#append_options = yes
51
#
52
# logging - set default log level "none", "verbose" or "debug"
53
#
54
#logging = none
55
#
56
# Define base dn for map dn lookup.
57
#
58
# Define server URIs
59
#
60
# ldap_uri - space seperated list of server uris of the form
61
# 	     <proto>://<server>[/] where <proto> can be ldap
62
# 	     or ldaps. The option can be given multiple times.
63
# 	     Map entries that include a server name override
64
# 	     this option.
65
#
66
#	     This configuration option can also be used to
67
#	     request autofs lookup SRV RRs for a domain of
68
#	     the form <proto>:///[<domain dn>]. Note that a
69
#	     trailing "/" is not allowed when using this form.
70
#	     If the domain dn is not specified the dns domain
71
#	     name (if any) is used to construct the domain dn
72
#	     for the SRV RR lookup. The server list returned
73
#	     from an SRV RR lookup is refreshed according to
74
#	     the minimum ttl found in the SRV RR records or
75
#	     after one hour, whichever is less.
76
#
77
#ldap_uri = ""
78
#
79
# ldap_timeout - timeout value for the synchronous API  calls
80
#		  (default is LDAP library default).
81
#
82
#ldap_timeout = -1
83
#
84
# ldap_network_timeout - set the network response timeout (default 8).
85
#
86
#ldap_network_timeout = 8
87
#
88
# search_base - base dn to use for searching for map search dn.
89
# 		Multiple entries can be given and they are checked
90
# 		in the order they occur here.
91
#
92
#search_base = ""
93
#
94
# Define the LDAP schema to used for lookups
95
#
96
# If no schema is set autofs will check each of the schemas
97
# below in the order given to try and locate an appropriate
98
# basdn for lookups. If you want to minimize the number of
99
# queries to the server set the values here.
100
#
101
#map_object_class = nisMap
102
#entry_object_class = nisObject
103
#map_attribute = nisMapName
104
#entry_attribute = cn
105
#value_attribute= nisMapEntry
106
#
107
# Other common LDAP nameing
108
#
109
#map_object_class = automountMap
110
#entry_object_class = automount
111
#map_attribute = ou
112
#entry_attribute = cn
113
#value_attribute= automountInformation
114
#
115
#map_object_class = automountMap
116
#entry_object_class = automount
117
#map_attribute = automountMapName
118
#entry_attribute = automountKey
119
#value_attribute= automountInformation
120
#
121
# auth_conf_file - set the default location for the SASL
122
#		   authentication configuration file.
123
#
124
#auth_conf_file = /etc/autofs_ldap_auth.conf
125
#
126
# map_hash_table_size - set the map cache hash table size.
127
# 			Should be a power of 2 with a ratio roughly
128
# 			between 1:10 and 1:20 for each map.
129
#
130
#map_hash_table_size = 1024
131
#
132
#
133
# Otions for the amd parser within autofs.
134
#
135
# amd configuration options that are aren't used, haven't been
136
# implemented or have different behaviour within autofs.
137
#
138
# A number of the amd configuration options are not used by autofs,
139
# some because they are not relevant within autofs, some because
140
# they are done differently in autofs and others that are not yet
141
# implemented.
142
#
143
# Since "mount_type" is always autofs (because there's no user space
144
# NFS server) the configuration entries relating to that aren't used.
145
# Also, server availability is done differently within autofs so the
146
# options that relate to the amd server monitoring sub-system are
147
# also not used.
148
#
149
# These options are mount_type, auto_attrcache, portmap_program,
150
# nfs_vers_ping, nfs_allow_any_interface, nfs_allow_insecure_port,
151
# nfs_proto, nfs_retransmit_counter, nfs_retransmit_counter_udp,
152
# nfs_retransmit_counter_tcp, nfs_retransmit_counter_toplvl,
153
# nfs_retry_interval, nfs_retry_interval_udp, nfs_retry_interval_tcp,
154
# nfs_retry_interval_toplvl and nfs_vers.
155
#
156
#
157
# Other options that are not used within the autofs implementation:
158
#
159
# log_file, truncate_log - autofs used either stderr when running in
160
#	the foreground or sends its output to syslog so an alternate
161
#	log file (or truncating the log) can't be used.
162
#
163
# print_pid - there's no corresponding option for this within autofs.
164
#
165
# use_tcpwrappers, show_statfs_entries - there's no user space NFS
166
#	server to control access to so this option isn't relevant.
167
#	The show_statfs_entries can't be implemented for the same
168
#	reason.
169
#
170
# debug_mtab_file - there's no user space NFS server and autofs
171
#	avoids using file based mtab whenever possible.
172
#
173
# sun_map_syntax - obviously, are provided by autofs itself.
174
#
175
# plock, show_statfs_entries, preferred_amq_port - not supported.
176
#
177
# ldap_cache_maxmem, ldap_cache_seconds - external ldap caching
178
#	is not used by autofs.
179
#
180
# ldap_proto_version - autofs always attempts to use the highest
181
#	available ldap protocol version.
182
#
183
# cache_duration, map_reload_interval, map_options - the map
184
#	entry cache is continually updated and stale entries
185
#	cleaned on re-load, which is done when map changes are
186
#	detected so these configuration entries are not used
187
#	by autofs.
188
#
189
# localhost_address - is not used within autofs. This
190
#	configuration option was only used in the amd user
191
#	space server code and is not relevant within autofs.
192
#
193
#
194
# Options that are handled differently within autofs:
195
#
196
# pid_file - must be given as a command line option on startup.
197
#
198
# print_version - program version and feature information is obtained
199
#	by using the automount command line option "-V".
200
#
201
# debug_options, log_options - autofs has somewhat more limited
202
#	logging and debug logging options. When the log_options
203
#	options is encountered it is converted to the nearest
204
#	matching autofs logging option. Since the configuration
205
#	option debug_options would be handled the same way it
206
#	is ignored.
207
#
208
# restart_mounts - has no sensible meaning within autofs because autofs
209
#	always tries to re-connect to existing mounts. While this
210
#	has its own set of problems not re-connecting to existing
211
#	mounts always results in a non-functional automount tree if
212
#	mounts were busy at the last shutdown (as is also the case
213
#	with amd when using mount_type autofs).
214
#
215
# forced_unmounts - detaching mounts often causes serious problems
216
#	for users of existing mounts. It is used by autofs in some
217
#	cases, either at the explicit request of the user (with a
218
#	command line or init option) and in some special cases during
219
#	program operation but is avoided whenever possible.
220
#
221
#
222
# A number of configuration options are not yet implemented:
223
#
224
# fully_qualified_hosts - not yet implemented.
225
#
226
# unmount_on_exit - since autofs always tries to re-connect
227
#	to mounts left mounted from a previous shutdown this
228
#	is a sensible option to implement and that will be
229
#	done.
230
#
231
# browsable_dirs - not yet implemented.
232
#
233
# exec_map_timeout - a timeout is not currently used for
234
#	for program maps, might be implemented.
235
#
236
# tag - the tag option is not implemented within autofs.
237
#
238
#
239
# Supported options:
240
#
241
# arch, karch, os, osver - these options default to what is returned
242
#	from uname(2) and can be overridden if required.
243
#
244
# full_os - has no default and must be set in the configuration
245
#	if used in maps.
246
#
247
# cluster - if not set defaults to the host domain name. This option
248
#	corresponds to the HP_UX cluster name (according to the amd
249
#	source) and is probably not used in Linux but is set anyway.
250
#
251
# vendor - has a default value of "unknown", it must be set in the
252
#	configuration if used in maps.
253
#
254
# auto_dir - is the base name of the mount tree used for external
255
#	mounts that are sometimes needed by amd maps. Its default
256
#	value is "/a".
257
#
258
# map_type - specifies the autofs map source, such as file, nis,
259
#	ldap etc. and has no default value set.
260
#
261
# map_defaults - is used to override /defaults entries within maps
262
#	and can be used to provide different defaults on specific
263
#	machines without having to modify centrally managed maps.
264
#	It is empty by default.
265
#
266
# search_path - colon seperated paths to search for maps that
267
#	are not specified as a full path.
268
#
269
# dismount_interval - is equivalent to the autofs timeout option. It
270
#	is only possible to use this with type "auto" mounts due
271
#	to the way the autofs kernel module performs expiry. It
272
#	takes its default value from the autofs internal default
273
#	of 600 seconds.
274
#
275
# autofs_use_lofs - if set to "yes" autofs will attempt to use bind
276
#	mounts for type "auto" when possible.
277
#
278
# nis_domain - allows setting of a domain name other than the system
279
#	default.
280
#
281
# local_domain - is used to override (or set) the host domain name.
282
#
283
# normalize_hostnames - if set to "yes" then the contents of ${rhost}
284
#	is translated in its official host name.
285
#
286
# domain_strip - if set to "yes" the domain name part of the host
287
# 	is strippped when normalizing hostnames. This can be useful
288
#	when using of the same maps in a multiple domain environment.
289
#
290
# normalize_slashes - is set to "yes" by default and will collapse
291
#	multiple unescaped occurrences of "/" to a single "/".
292
#
293
# selectors_in_defaults, selectors_on_default - has a default value
294
#	of "no". If set to "yes" then any defaults entry will be
295
#	checked for selectors to determine the values to be used.
296
#	selectors_in_defaults is the preferred option to use.
297
#
298
# ldap_base - has no default value. It must be set to the base dn
299
#	that is used for queries if ldap is to be used as a map
300
#	source.
301
#
302
# ldap_hostports - has no default value set. It must be set to
303
#	the URI of the LDAP server to be used for lookups when
304
#	ldap is used a map source. It may contain a comma or
305
#	space seperated list of LDAP URIs.
306
#
307
# hesiod_base - the base name used for hesiod map sources.
308
#
309
# Additional configuration options added:
310
#
311
# linux_ufs_mount_type - set the default system filesystem type that's
312
#	used for mount type ufs. There's no simple way to determine
313
#	what the system default filesystem is and am-utils needs to
314
#	be continually updated to do this and can easily get it wrong
315
#	anyway.
316
#
317
#
318
# Define global options for the amd parser within autofs.
319
#
320
[ amd ]
321
#
322
# Override the internal default with the same timeout that
323
# is used by the override in the autofs configuration, sanity
324
# only change.
325
#
326
dismount_interval = 300
327
#
328
# map_type = file
329
#
330
# Overriding this can cause autofs to use less resources because
331
# it will use symlinks instead of bind mounts in certain cases.
332
# You should ensure that the autofs kernel module your using
333
# supports expration of symlinks for best results (although this
334
# appears to work reasonably well most of the time without the
335
# update).
336
#
337
# autofs_use_lofs = yes
338
#
339
# Several configuration options can be set per mount point.
340
# In particulr map_type, map_name, map_defaults, search_path,
341
# browsable_dirs, dismount_interval and selectors_in_defaults
342
# (not all of which are currently implemented, see above).
343
#
344
# Also, if a section for an amd mount point is defined here
345
# it isn't necessary to specify the format in the corresponding
346
# master map entry and the format will be inherited for type
347
# "auto" mounts.
348
#
349
# [ /expamle/mount ]
350
# dismount_interval = 60
351
# map_type = nis