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"