Rob Crittenden wrote:
Rob Crittenden wrote:
Pavel Zůna wrote:
0007: Add support for different automount maps per location.

This patch enabled us to have a different set of automount maps per location and to manage those locations via command plugins.

To add a new location:

ipa automountlocation-add Brno

To add a map to this location:

ipa automountmap-add Brno foo

To add a key to this map:

ipa automountkey-add Brno foomap barkey


0008: Remove parent_key parameter kwarg.
I bundled this patch here, because parent_key was only used in the automount plugin. If patch 0007 gets acked, this can get acked too.

parent_key won't be used anymore, instead parent_object is used in LDAPObject to define this kind of relation.

Pavel

Can you provide some examples of how location will be used on the command-line (e.g. show how 2 new maps with a key would be added to 2 locations).

And to be clear, I did read your previous example :-) I just don't see where the key comes from. I'm wondering if it is really going to be a multi-step process to add new maps.

rob

I'm not sure if this is what you want to see, but:

# ipa automountlocation-add Brno

# ipa automountlocation-add Baltimore

# ipa automountmap-add-indirect Brno auto.mnt --mount="/mnt"

# ipa automountmap-add-indirect Baltimore auto.media --mount="/media"

# ipa automountkey-add Brno auto.mnt stuff --info="-ro,soft,rsize=8192,wsize=8192 nfs.example.com:/vol/archive/stuff"

# ipa automountkey-add Baltimore auto.media stuff --info="-ro,soft,rsize=8192,wsize=8192 nfs.example.com:/vol/archive/stuff"

# ipa automountlocation-tofiles Brno
/etc/auto.master:
/mnt    /etc/auto.mnt
---------------------------
/etc/auto.mnt:
stuff   -ro,soft,rsize=8192,wsize=8192 nfs.example.com:/vol/archive/stuff

# ipa automountlocation-tofiles Baltimore
/etc/auto.master:
/media  /etc/auto.media
---------------------------
/etc/auto.mnt:
stuff   -ro,soft,rsize=8192,wsize=8192 nfs.example.com:/vol/archive/stuff


Pavel

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to