##############################################################
#
# cf.main
#
# This file contains generic config stuff
#
#################################################################

###
#
# BEGIN cf.main
#
###

control:

	Access    	= ( root )        # Only root should run this

	timezone  	= ( MET CET )

	Repository	= ( /var/backups/cfengine )

	LocalCommon = ( /etc/local-COMMON )

	OutputPrefix = ( "cf:$(host)" )

	netmask   	= ( 255.255.255.0 )

#	IfElapsed	= ( 15 )  # mins
	IfElapsed	= ( 1 )  # mins
	ExpireAfter	= ( 240 ) # 4 timer
	SplayTime	= ( 1 )   # 1 minute

	SensibleSize	= ( 1000 )
	SensibleCount	= ( 2 )
	EditfileSize	= ( 40000 )

	MountPattern	= ( / )
	HomePattern	= ( home* )

#	DeleteNonUserMail	= ( true )
#	DeleteNonOwnerMail	= ( true )
	WarnNonOwnerMail	= ( true )
	WarnNonUserMail		= ( true )

   #
   # If we undefine this with cfengine -N longjob
   # then we switch off all jobs labelled with this class
   #

	AddClasses = ( longjob )

	CheckAlias = ( "/usr/bin/test" )

	actionsequence = (
		checktimezone
		#resolve
		editfiles
		directories
		copy
		tidy
		shellcommands
		links
		processes
	)

broadcast:
	ones

tidy: 
	/tmp/		pat=*		r=inf	A=1
	/var/tmp	pat=*		r=inf	A=2
	/		pat=core	r=1	A=0
	/etc		pat=core	r=1	A=0

links:
	/dev/core	->	/proc/kcore

ignore:				# Don't check or tidy these directories

	/local/lib/gnu/emacs/lock/
	/local/tmp
	ftp
	projects
	/local/bin/top
	/local/lib/tex/fonts
	/local/iu/etc
	/local/etc
	/local/iu/httpd/conf
	/usr/tmp/locktelelogic
	/usr/tmp/lockIDE
	RootMailLog
	operator
	lock

	#
	# Emacs lock files etc
	#

	!*
	/local/lib/xemacs

	#
	# X11 keeps X server data in /tmp/.X11
	# better not delete this!
	#

	.X*
	.ICE*
	.font*
	.gnomeicu*
	.sawfish*
	darxsock.*
	mcop*
	orbit*
	ssh*
	.Media*
	/tmp/.gdm_socket

	session_mm_apache*

#####################################################################

disable:

	/etc/hosts.equiv
#	/etc/nologin
	/usr/lib/sendmail.fc

###
#
# END cf.main
#
###