Subversion Repositories configs

Rev

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

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