summaryrefslogtreecommitdiff
path: root/samba/smb-shares-venture.conf
blob: f47666230e9224b6836ceb79a38c5c461a382a93 (plain)
  1. control:
  2.     AddInstallable = ( samba samba_reload netatalk netatalk_reload )
  3. #
  4. # Variables for shares
  5. # You can change the paths here and it will be changed both in
  6. # the conf file and in the filesystem - But once it is implemented,
  7. # it is not wise to change it - the data in the shares doesn't get
  8. # moved!
  9. # You can change the rights on the shares in the "directories:"
  10. # section.
  11. #
  12. netlogshare = ( /etc/samba/netlogon )
  13. commonsharedir = ( /home/fsadmin/COMMON )
  14. softshare = ( /home/fsadmin/COMMON/software )
  15. profshare = ( /home/fsadmin/COMMON/samba/userprofiles )
  16. adminshare = ( /home/admin/admin )
  17. businessshare = ( /home/business/business )
  18. accountingshare = ( /home/accounting/accounting )
  19. graphicsshare = ( /home/graphics/graphics )
  20. itshare = ( /home/it/it )
  21. edushare = ( /home/edu/edu )
  22. serviceshare = ( /home/service/service )
  23. privpcshare = ( .pcshare )
  24. privmacshare = ( .macshare )
  25. privxchngshare = ( .xchangeshare )
  26. samba_reload::
  27. { /etc/samba/smb-shares-$(fqdn).conf
  28. LocateLineMatching "^; EDITED BY CFENGINE .*"
  29. ReplaceAll '; EDITED BY CFENGINE .*$' With '; EDITED BY CFENGINE $(date)'
  30. CatchAbort
  31. BeginGroupIfNoMatch "^; EDITED BY CFENGINE .*"
  32. Append '; EDITED BY CFENGINE $(date)'
  33. EndGroup
  34. }
  35. directories:
  36. any::
  37. $(commonsharedir)
  38. mode=755
  39. owner=fsadmin
  40. group=fsadmin
  41. $(softshare)
  42. mode=775
  43. owner=fsadmin
  44. group=fsadmin
  45. $(datashare)
  46. mode=775
  47. owner=fsadmin
  48. group=fsadmin
  49. $(adminshare)
  50. mode=775
  51. owner=admin
  52. group=admin
  53. $(businessshare)
  54. mode=775
  55. owner=business
  56. group=business
  57. $(accountingshare)
  58. mode=775
  59. owner=accounting
  60. group=accounting
  61. $(graphicsshare)
  62. mode=775
  63. owner=graphics
  64. group=graphics
  65. $(itshare)
  66. mode=775
  67. owner=it
  68. group=it
  69. $(edushare)
  70. mode=775
  71. owner=edu
  72. group=edu
  73. $(serviceshare)
  74. mode=775
  75. owner=service
  76. group=service
  77. samba::
  78. $(netlogshare)
  79. mode=755
  80. owner=root
  81. group=root
  82. $(profshare)
  83. mode=777
  84. owner=fsadmin
  85. group=fsadmin
  86. processes:
  87. "smbd" restart "/etc/init.d/samba restart"
  88. shellcommands:
  89. samba_reload::
  90. "/etc/init.d/samba force-reload"