diff options
author | Rob Crittenden <rcritten@redhat.com> | 2012-01-19 16:15:50 -0500 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-02-06 10:50:40 +0100 |
commit | 36849292704a801bbfd6b633f9596914fb076a36 (patch) | |
tree | addbabec11cb692754298486168ff4acc8e1cef0 /COPYING | |
parent | d4272ce3747b07249e1401f5525bf8758611941a (diff) | |
download | freeipa-36849292704a801bbfd6b633f9596914fb076a36.tar.gz freeipa-36849292704a801bbfd6b633f9596914fb076a36.tar.xz freeipa-36849292704a801bbfd6b633f9596914fb076a36.zip |
Make submount automount maps work.
Indirect automount nesting is achieved by adding a key that references
another map. This isn't heirarchical, in fact, you can have multiple
duplicate keys all pointing at the same map, which itself is mounted
in other places. It can be a real mess if you want.
In any case, a submount map has its information set to
"-fstype=autofs <type>:<map>"
The type can be any valid automount type: file, nis, yp, ldap, etc. We
are going to hardcode ldap in when we create these using
automountmap-add-indirect. If a user wants a different type they can
create the key themselves (or edit it later).
Here is an example of creating a submount:
$ ipa automountlocation-add baltimore
$ ipa automountmap-add-indirect baltimore auto.share --mount=/share
$ ipa automountmap-add-indirect baltimore --parentmap=auto.share --mount=sub auto.sub
$ ipa automountkey-add baltimore auto.sub --key=share --info=attic:/share
$ ls /share/sub/share
builds lost+found
This looks like:
etc/auto.master:
/- /etc/auto.direct
/share /etc/auto.share
---------------------------
/etc/auto.direct:
---------------------------
/etc/auto.share:
sub -fstype=autofs ldap:auto.sub
maps not connected to /etc/auto.master:
---------------------------
/etc/auto.sub:
share attic:/share
I've also added a catch-all when using the tofiles function. We were
missing any maps that weren't attached to auto.master. They will now
be shown along with whatever keys they have.
https://fedorahosted.org/freeipa/ticket/1268
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions