summaryrefslogtreecommitdiff
path: root/samba/smb-shares-venture.conf
diff options
context:
space:
mode:
authorJuri Jensen <juri@xenux.dk>2002-03-21 15:09:23 +0000
committerJuri Jensen <juri@xenux.dk>2002-03-21 15:09:23 +0000
commit02454b2c02257114430d2e3f45d95f30ec525c9e (patch)
treeea50e9d2517c21f3775c05a585fd103daa89aba9 /samba/smb-shares-venture.conf
parent3f4b4403c2c4c0b7c412c44c940f92ce01f99e82 (diff)
samba: Added a cfengine file for Jonas to process into an .m4 file.
Diffstat (limited to 'samba/smb-shares-venture.conf')
-rw-r--r--samba/smb-shares-venture.conf95
1 files changed, 95 insertions, 0 deletions
diff --git a/samba/smb-shares-venture.conf b/samba/smb-shares-venture.conf
new file mode 100644
index 0000000..f476662
--- /dev/null
+++ b/samba/smb-shares-venture.conf
@@ -0,0 +1,95 @@
+control:
+ AddInstallable = ( samba samba_reload netatalk netatalk_reload )
+
+ #
+ # Variables for shares
+ # You can change the paths here and it will be changed both in
+ # the conf file and in the filesystem - But once it is implemented,
+ # it is not wise to change it - the data in the shares doesn't get
+ # moved!
+ # You can change the rights on the shares in the "directories:"
+ # section.
+ #
+ netlogshare = ( /etc/samba/netlogon )
+ commonsharedir = ( /home/fsadmin/COMMON )
+ softshare = ( /home/fsadmin/COMMON/software )
+ profshare = ( /home/fsadmin/COMMON/samba/userprofiles )
+ adminshare = ( /home/admin/admin )
+ businessshare = ( /home/business/business )
+ accountingshare = ( /home/accounting/accounting )
+ graphicsshare = ( /home/graphics/graphics )
+ itshare = ( /home/it/it )
+ edushare = ( /home/edu/edu )
+ serviceshare = ( /home/service/service )
+ privpcshare = ( .pcshare )
+ privmacshare = ( .macshare )
+ privxchngshare = ( .xchangeshare )
+
+ samba_reload::
+ { /etc/samba/smb-shares-$(fqdn).conf
+ LocateLineMatching "^; EDITED BY CFENGINE .*"
+ ReplaceAll '; EDITED BY CFENGINE .*$' With '; EDITED BY CFENGINE $(date)'
+ CatchAbort
+ BeginGroupIfNoMatch "^; EDITED BY CFENGINE .*"
+ Append '; EDITED BY CFENGINE $(date)'
+ EndGroup
+ }
+
+directories:
+ any::
+ $(commonsharedir)
+ mode=755
+ owner=fsadmin
+ group=fsadmin
+ $(softshare)
+ mode=775
+ owner=fsadmin
+ group=fsadmin
+ $(datashare)
+ mode=775
+ owner=fsadmin
+ group=fsadmin
+ $(adminshare)
+ mode=775
+ owner=admin
+ group=admin
+ $(businessshare)
+ mode=775
+ owner=business
+ group=business
+ $(accountingshare)
+ mode=775
+ owner=accounting
+ group=accounting
+ $(graphicsshare)
+ mode=775
+ owner=graphics
+ group=graphics
+ $(itshare)
+ mode=775
+ owner=it
+ group=it
+ $(edushare)
+ mode=775
+ owner=edu
+ group=edu
+ $(serviceshare)
+ mode=775
+ owner=service
+ group=service
+ samba::
+ $(netlogshare)
+ mode=755
+ owner=root
+ group=root
+ $(profshare)
+ mode=777
+ owner=fsadmin
+ group=fsadmin
+
+processes:
+ "smbd" restart "/etc/init.d/samba restart"
+
+shellcommands:
+ samba_reload::
+ "/etc/init.d/samba force-reload"