I manage a number of machines and was trying to use the cfengine home directory mounting setup. The setup is designed for a group where each user has a workstation with his own disk space on his on workstation mounted on the system. However, each member of the group is also setup so that he can see everyone elses home disks...

so I have homeservers setup and mountables and so forth. However, as the persons homeserver and their personal wotkstation are the same machine and this tends to end up with cfengine adding extra mount points for remote mounting the local home directory onto the local machine ontop of the mount point that is already there... help!!

an example

cfagent.conf

control:

        actionsequence = ( files
                           editfiles
                           processes
                           mountall
                           mountinfo
                           addmounts
                           mountall
                           links )

   mountpattern = ( /usr/$(host) )
   homepattern = ( home  )

HomansGroup = ( bopeep
                          jessy )

homeservers:

       HomansGroup:: bopeep jessy

mountables:

  #bopeep:/usr/bopeep/home  mountoptions=auto,bg,nosuid,retry=20
  jessy:/usr/jessy/home    mountoptions=auto,bg,nosuid,retry=20
  jessy:/usr/oslo          mountoptions=auto,bg,nosuid,retry=20


resulting fstab:

# home mount point on users workstation
/dev/sda1 /usr/jessy/home ext3 defaults,rw,exec,nosuid,nodev,acl,procuid,user_xattr 0 0
# extra mount point added by cfengine
#jessy:/usr/jessy/home /usr/jessy/home nfs rw,auto,bg,nosuid,retry=20

--
-------------------------------------------------------------------
Dr Gary Thompson
Astbury Centre for Structural Molecular Biology,
University of Leeds, Astbury Building,
Leeds, LS2 9JT, West-Yorkshire, UK             Tel. +44-113-3433024
email: [EMAIL PROTECTED]                   Fax  +44-113-2331407
-------------------------------------------------------------------


_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
http://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to