##############################################################
#
# cf.main - for iu.hioslo.no
#
# This file contains generic config stuff
#
#################################################################
###
#
# BEGIN cf.main
#
###
control: 
   access    = ( root )        # Only root should run this
   site      = ( iu )
   domain    = ( iu.hioslo.no )
   sysadm    = ( drift@iu.hioslo.no ) 
   repository = ( /var/spool/cfengine )
   netmask   = ( 255.255.255.0 )
   timezone  = ( MET )
   nfstype   = ( nfs )
   sensiblesize  = ( 1000 )
   sensiblecount = ( 2 )
   editfilesize  = ( 20000 )
   mountpattern = ( /$(site)/$(host) )
   homepattern  = ( u? ) 
   #
   # If we undefine this with cfengine -N longjob
   # then we switch off all jobs labelled with this class
   #
   addclasses = ( longjob )
   #
   # Macros & constants are inherited downwards in imports
   # but are not passed up to parent files. Good idea to
   # define them all here
   #
   masterfiles = ( /iu/nexus/local/iu )
   main_server = ( nexus )
   cfbin       = ( /iu/nexus/local/gnu/lib/cfengine/bin )
   gnu         = ( /local/gnu )
   ftp         = ( /local/iu/ftp )
   nisslave    = ( dax )
   nisfiles    = ( /iu/nexus/local/iu/etc )
   #
   # The action sequence for daily (full) runs and
   # for hourly updates (called with -DHourly)
   #
   Hr00::
      actionsequence = 
         (
         copy
         mountall
         mountinfo
         checktimezone
         netconfig
         resolve
         unmount
         shellcommands
         addmounts
         links.Prepare
         files.Prepare
         directories
         links.Rest
         mailcheck
         mountall
         required
         tidy
         disable
         editfiles
         files.Rest
         processes
         )
   !Hr00::
      actionsequence =
         (
         resolve
         shellcommands
         copy
         editfiles
         processes
	 links
         )
   force::
      actionsequence = 
         (
         files.Prepare.Rest
         tidy
         )
######################################################################
homeservers:
   iu:: nexus
binservers:
   iu.solaris::                 nexus
   iu.linux::                   borg
mailserver:
   any:: nexus:/var/mail
mountables:
   any::
         nexus:/iu/nexus/u1
         nexus:/iu/nexus/u2
         nexus:/iu/nexus/u3
         nexus:/iu/nexus/u4
         nexus:/iu/nexus/u5
         nexus:/iu/nexus/u6
         nexus:/iu/nexus/ua
         nexus:/iu/nexus/ud
         nexus:/iu/nexus/local
         nexus:/opt/NeWSprint
         nexus:/opt/AcroRead
         borg:/iu/borg/local
         dax:/iu/dax/local
miscmounts:
   linux||freebsd::   nexus:/iu/nexus/local /iu/nexus/local ro
######################################################################
broadcast:
  ones
defaultroute:
   cadeler30-gw
######################################################################
resolve:
      128.39.89.10  # nexus
      158.36.85.10  # samson.hioslo.no
      129.241.1.99
######################################################################
tidy: 
   #
   # Some global tidy-ups
   #
      /tmp/                    pat=*             r=inf     A=1
      /var/tmp                 pat=*             r=inf     A=1
      /                        pat=core          r=1       A=0
      /etc                     pat=core          r=1       A=0
######################################################################
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
      #
      # Emacs lock files etc
      #
      !*
      /local/lib/xemacs
      #
      # X11 keeps X server data in /tmp/.X11
      # better not delete this!
      #
      .X11
      #
      # Some users like to give a file or two 777 protection here
      # so netsurfers can update a log or counter when running as
      # `nobody'
      #
      www
#####################################################################
disable:
   /etc/hosts.equiv
   /etc/nologin
   /usr/lib/sendmail.fc
###
#
# END cf.main
#
###
Go to the first, previous, next, last section, table of contents.