Subversion Repositories configs

Rev

Rev 9 | Rev 58 | 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.
138
# 			Should be a power of 2 with a ratio roughly
139
# 			between 1:10 and 1:20 for each map.
140
#
141
#map_hash_table_size = 1024
142
#
143
#
144
# Otions for the amd parser within autofs.
145
#
146
# amd configuration options that are aren't used, haven't been
147
# implemented or have different behaviour within autofs.
148
#
149
# A number of the amd configuration options are not used by autofs,
150
# some because they are not relevant within autofs, some because
151
# they are done differently in autofs and others that are not yet
152
# implemented.
153
#
154
# Since "mount_type" is always autofs (because there's no user space
155
# NFS server) the configuration entries relating to that aren't used.
156
# Also, server availability is done differently within autofs so the
157
# options that relate to the amd server monitoring sub-system are
158
# also not used.
159
#
160
# These options are mount_type, auto_attrcache, portmap_program,
161
# nfs_vers_ping, nfs_allow_any_interface, nfs_allow_insecure_port,
162
# nfs_proto, nfs_retransmit_counter, nfs_retransmit_counter_udp,
163
# nfs_retransmit_counter_tcp, nfs_retransmit_counter_toplvl,
164
# nfs_retry_interval, nfs_retry_interval_udp, nfs_retry_interval_tcp,
165
# nfs_retry_interval_toplvl and nfs_vers.
166
#
167
#
168
# Other options that are not used within the autofs implementation:
169
#
170
# log_file, truncate_log - autofs used either stderr when running in
171
#	the foreground or sends its output to syslog so an alternate
172
#	log file (or truncating the log) can't be used.
173
#
174
# print_pid - there's no corresponding option for this within autofs.
175
#
176
# use_tcpwrappers, show_statfs_entries - there's no user space NFS
177
#	server to control access to so this option isn't relevant.
178
#	The show_statfs_entries can't be implemented for the same
179
#	reason.
180
#
181
# debug_mtab_file - there's no user space NFS server and autofs
182
#	avoids using file based mtab whenever possible.
183
#
184
# sun_map_syntax - obviously, are provided by autofs itself.
185
#
186
# plock, show_statfs_entries, preferred_amq_port - not supported.
187
#
188
# ldap_cache_maxmem, ldap_cache_seconds - external ldap caching
189
#	is not used by autofs.
190
#
191
# ldap_proto_version - autofs always attempts to use the highest
192
#	available ldap protocol version.
193
#
194
# cache_duration, map_reload_interval, map_options - the map
195
#	entry cache is continually updated and stale entries
196
#	cleaned on re-load, which is done when map changes are
197
#	detected so these configuration entries are not used
198
#	by autofs.
199
#
200
# localhost_address - is not used within autofs. This
201
#	configuration option was only used in the amd user
202
#	space server code and is not relevant within autofs.
203
#
204
#
205
# Options that are handled differently within autofs:
206
#
207
# pid_file - must be given as a command line option on startup.
208
#
209
# print_version - program version and feature information is obtained
210
#	by using the automount command line option "-V".
211
#
212
# debug_options, log_options - autofs has somewhat more limited
213
#	logging and debug logging options. When the log_options
214
#	options is encountered it is converted to the nearest
215
#	matching autofs logging option. Since the configuration
216
#	option debug_options would be handled the same way it
217
#	is ignored.
218
#
219
# restart_mounts - has no sensible meaning within autofs because autofs
220
#	always tries to re-connect to existing mounts. While this
221
#	has its own set of problems not re-connecting to existing
222
#	mounts always results in a non-functional automount tree if
223
#	mounts were busy at the last shutdown (as is also the case
224
#	with amd when using mount_type autofs).
225
#
226
# forced_unmounts - detaching mounts often causes serious problems
227
#	for users of existing mounts. It is used by autofs in some
228
#	cases, either at the explicit request of the user (with a
229
#	command line or init option) and in some special cases during
230
#	program operation but is avoided whenever possible.
231
#
232
#
233
# A number of configuration options are not yet implemented:
234
#
235
# fully_qualified_hosts - not yet implemented.
236
#
237
# unmount_on_exit - since autofs always tries to re-connect
238
#	to mounts left mounted from a previous shutdown this
239
#	is a sensible option to implement and that will be
240
#	done.
241
#
242
# browsable_dirs - not yet implemented.
243
#
244
# exec_map_timeout - a timeout is not currently used for
245
#	for program maps, might be implemented.
246
#
247
# tag - the tag option is not implemented within autofs.
248
#
249
#
250
# Supported options:
251
#
252
# arch, karch, os, osver - these options default to what is returned
253
#	from uname(2) and can be overridden if required.
254
#
255
# full_os - has no default and must be set in the configuration
256
#	if used in maps.
257
#
258
# cluster - if not set defaults to the host domain name. This option
259
#	corresponds to the HP_UX cluster name (according to the amd
260
#	source) and is probably not used in Linux but is set anyway.
261
#
262
# vendor - has a default value of "unknown", it must be set in the
263
#	configuration if used in maps.
264
#
265
# auto_dir - is the base name of the mount tree used for external
266
#	mounts that are sometimes needed by amd maps. Its default
267
#	value is "/a".
268
#
269
# map_type - specifies the autofs map source, such as file, nis,
270
#	ldap etc. and has no default value set.
271
#
272
# map_defaults - is used to override /defaults entries within maps
273
#	and can be used to provide different defaults on specific
274
#	machines without having to modify centrally managed maps.
275
#	It is empty by default.
276
#
277
# search_path - colon seperated paths to search for maps that
278
#	are not specified as a full path.
279
#
280
# dismount_interval - is equivalent to the autofs timeout option. It
281
#	is only possible to use this with type "auto" mounts due
282
#	to the way the autofs kernel module performs expiry. It
283
#	takes its default value from the autofs internal default
284
#	of 600 seconds.
285
#
286
# autofs_use_lofs - if set to "yes" autofs will attempt to use bind
287
#	mounts for type "auto" when possible.
288
#
289
# nis_domain - allows setting of a domain name other than the system
290
#	default.
291
#
292
# local_domain - is used to override (or set) the host domain name.
293
#
294
# normalize_hostnames - if set to "yes" then the contents of ${rhost}
295
#	is translated in its official host name.
296
#
297
# domain_strip - if set to "yes" the domain name part of the host
298
# 	is strippped when normalizing hostnames. This can be useful
299
#	when using of the same maps in a multiple domain environment.
300
#
301
# normalize_slashes - is set to "yes" by default and will collapse
302
#	multiple unescaped occurrences of "/" to a single "/".
303
#
304
# selectors_in_defaults, selectors_on_default - has a default value
305
#	of "no". If set to "yes" then any defaults entry will be
306
#	checked for selectors to determine the values to be used.
307
#	selectors_in_defaults is the preferred option to use.
308
#
309
# ldap_base - has no default value. It must be set to the base dn
310
#	that is used for queries if ldap is to be used as a map
311
#	source.
312
#
313
# ldap_hostports - has no default value set. It must be set to
314
#	the URI of the LDAP server to be used for lookups when
315
#	ldap is used a map source. It may contain a comma or
316
#	space seperated list of LDAP URIs.
317
#
318
# hesiod_base - the base name used for hesiod map sources.
319
#
320
# Additional configuration options added:
321
#
322
# linux_ufs_mount_type - set the default system filesystem type that's
323
#	used for mount type ufs. There's no simple way to determine
324
#	what the system default filesystem is and am-utils needs to
325
#	be continually updated to do this and can easily get it wrong
326
#	anyway.
327
#
328
#
329
# Define global options for the amd parser within autofs.
330
#
331
[ amd ]
332
#
333
# Override the internal default with the same timeout that
334
# is used by the override in the autofs configuration, sanity
335
# only change.
336
#
337
dismount_interval = 300
338
#
339
# map_type = file
340
#
341
# Overriding this can cause autofs to use less resources because
342
# it will use symlinks instead of bind mounts in certain cases.
343
# You should ensure that the autofs kernel module your using
344
# supports expration of symlinks for best results (although this
345
# appears to work reasonably well most of the time without the
346
# update).
347
#
348
# autofs_use_lofs = yes
349
#
350
# Several configuration options can be set per mount point.
351
# In particulr map_type, map_name, map_defaults, search_path,
352
# browsable_dirs, dismount_interval and selectors_in_defaults
353
# (not all of which are currently implemented, see above).
354
#
355
# Also, if a section for an amd mount point is defined here
356
# it isn't necessary to specify the format in the corresponding
357
# master map entry and the format will be inherited for type
358
# "auto" mounts.
359
#
360
# [ /expamle/mount ]
361
# dismount_interval = 60
362
# map_type = nis