summaryrefslogtreecommitdiff
path: root/cfengine/cf.services.file.tmp.m4
blob: 72f94b2d0d9745e0844c9feebb299a8d330b3501 (plain)
  1. ifelse(`
  2. /etc/cfengine/cf.services.file.tmp.m4
  3. Copyright 2002 Jonas Smedegaard <dr@jones.dk>
  4. $Id: cf.services.file.tmp.m4,v 1.3 2002-08-06 13:26:01 jonas Exp $
  5. cfengine m4 skeleton file for cleaning up Samba and Netatalk shares
  6. Usage: m4 -DFQDN=<FQDN> /etc/local-COMMON/cfengine/cf.services.file.tmp.m4 > /tmp/cf.services.file
  7. Depend on file /etc/local-COMMON/file-<FQDN>.m4 containing lines of
  8. the following syntax:
  9. _dir(<os>,<path>,<uid>,<gid>,<modes>)dnl
  10. _home(<os>,<mount>,<desc>,<path>[,ro])dnl
  11. _files(<os>,<mount>,<desc>,<path>,<uid>,<gid>,<modes>[,ro[,<group>]|,rw,<group>[,<othergroup>]])dnl
  12. where
  13. <os>: Client operating systems (mac|win|any)
  14. <mount>: Mount point name (Samba: single word and max. 8 characters for backwards compatibility)
  15. <desc>: Mount point description (iso8859-1 is (fully?) supported).
  16. <uid>: user name of mountpoint owner
  17. <gid>: group name of mountpoint owner
  18. <modes>: Numeric access modes of mount point
  19. <path>: Full path to mount point
  20. <group>: Primary group with (readonly) access to mountpoint. Public (or whatever limited by filesystem) readonly access if omitted
  21. <othergroup>: Secondary group with readonly access
  22. Example:
  23. _dir(any,/home/fsadmin/COMMON,fsadmin,fsadmin,755)dnl
  24. _homefiles(win,homes,Personal files,%H/pc))
  25. _homefiles(mac,,Personal files,~/mac))
  26. _files(win,soft,softshare,/home/fsadmin/COMMON/software,fsadmin,fsadmin,775)dnl
  27. _printer(win,LW,Networkprinter queue for Apple LaserWriter 16/600,/tmp,lw)
  28. ')dnl
  29. define(_tab,` ')dnl
  30. define(_dir,_tab$2
  31. mode=$5
  32. owner=$3
  33. group=$4
  34. )dnl
  35. define(_homefiles,`')dnl
  36. define(_printer,`')dnl
  37. define(_files,_dir($1,$4,$5,$6,$7))dnl
  38. control:
  39. AddInstallable = ( samba samba_reload netatalk netatalk_reload )
  40. actionsequence = ( directories )
  41. directories:
  42. include(/etc/local-COMMON/file-FQDN.m4)dnl