HomePattern = ( list of wildcards )
The homepattern
variable is used by the cfengine model for
mounting nfs filesystems. See section Cfengine's model for NFS-mounted filesystems.
It is also used in the evaluation of the pseudo variable
home
, See section files, section tidy.
homepattern
is in fact a list and is used like a wildcard or
pattern to determine which filesystems in the list of mountables
are home directories. See section mountables. This relies on your sticking
to a rigid naming convention as described in the first reference above.
For example, you might wish to mount (or locate directly if you are not
using a separate partition for home directories) your home directories
under mountpattern
in directories u1
, u2
and so on.
In this case you would define homepattern
to match these numbers:
homepattern = ( u? )
Cfengine now regards any directory matching
$(mountpattern)/u?
as being a user login directory.
Here is another example in which you split up a single partition into
subdirectories. Suppose you want to create mount home directories under
$(mountpattern)/home
and make subdirectories for staff and
students. Then you would write:
HomePattern = ( home/staff home/students )
Or you could combine the two:
HomePattern = ( u?/staff u?/students )
Go to the first, previous, next, last section, table of contents.