Re: automount /home maps?
Will Partain <[email protected]> Thu, 12 Jul 2001 20:37:23 +0100
| Newsgroups | gmane.comp.sysutils.ark.devel |
|---|---|
| Message-ID | <[email protected]> |
Harlan asks:
> Is there a template/procedure for handling a "home directory" automount map
> for ark?
Yes, Sidai has something (simple) -- the proto-package is
automount-maps [sidai/package/automount-maps.xml].
`glasli1' uses it, so you can see exact bits that we use --
its real package is also called automount-maps (and
inherits, of course, from sidai:automount-maps).
Automount maps can come from *.tmpl files (see
glasli1/automount-maps/*.tmpl, for example) or can be
generated from a set of 'dchunks' info, or both. ('glasli1'
does both.) At glasli1, as it happens, there is a 'users'
map (not a 'home' map), and it is simply a .tmpl file.
(Our 'd' and 'workspace' maps are generated from dchunks.)
The 'configure' method (by default) groks the dchunks stuff,
to produce a 'super-tmpl' file, automount-maps.tmpl.
The 'compile' method produces per-host automount maps,
either from the generated automount-maps.tmpl file, or from
the hand-written *.tmpl files. When that's done at glasli1,
I end up with the files listed below.
We then get these files into place (/etc on each host) using
the normal sidai:ark-diffing-deploy machinery (install,
deploy, reveal).
When we make changes to the maps, we run
sidai/package-utils/ark-invasive automount-maps
to re-do things. All kinda low-tech, but does what we want.
If you were doing NIS -- we don't at glasli1 -- you'd want
to set your own <hosts-supported>, probably to something like
(e.g.) sparc-solaris7-nis-server, and probably have other
packages (nis-server-config? nis-client-config?) that dish
the bits out from there.
(I'll turn this message into the missing documentation :-)
I would be happy to elaborate the Sidai automount-map
package a little to cater for (a few) other common
practices...
Will
partain@slicker% cd /d/ark-builds/automount-maps/ALL
partain@slicker% find . -type f
./automount-maps.tmpl
./slinger/etc/auto_master
./slinger/etc/auto_users
./slinger/etc/auto_local
./slinger/etc/auto_d
./slinger/etc/auto_workspace
./slicker/etc/auto_master
./slicker/etc/auto_users
./slicker/etc/auto_local
./slicker/etc/auto_d
./slicker/etc/auto_workspace
./slimy/etc/auto_master
./slimy/etc/auto_users
./slimy/etc/auto_local
./slimy/etc/auto_d
./slimy/etc/auto_workspace
./gorregan/etc/auto_master
./gorregan/etc/auto_users
./gorregan/etc/auto_local
./gorregan/etc/auto_d
./gorregan/etc/auto_workspace