Subversion Repositories configs

Rev

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