Subversion Repositories configs

Rev

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