From 02454b2c02257114430d2e3f45d95f30ec525c9e Mon Sep 17 00:00:00 2001 From: Juri Jensen Date: Thu, 21 Mar 2002 15:09:23 +0000 Subject: samba: Added a cfengine file for Jonas to process into an .m4 file. --- samba/smb-shares-venture.conf | 95 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 samba/smb-shares-venture.conf (limited to 'samba/smb-shares-venture.conf') 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" -- cgit v1.2.3