Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 23e57fbf272caf0c095ef6029be1d8db > files > 12

cfengine-base-2.2.10-7mdv2010.1.x86_64.rpm

##################################################################
#
# cf.motd
#
# This file is used to set the message of the day file on
# each host
#
##################################################################
 
#####
#
# BEGIN cf.motd
#
#####

control:

   #
   # This points to the file containing general text
   #

   masterfile = ( /iu/nexus/local/iu/etc/motd-master )
   addendum   = ( /iu/nexus/local/iu/etc/motd-nexus  )

editfiles:

   { /etc/motd

   BeginGroupIfFileIsNewer "$(masterfile)"
        AutoCreate
#        IncrementPointer "1"
        DeleteLinesAfterThisMatching ".*"
        InsertFile "$(masterfile)"
   EndGroup
   }

  nexus::

   { /etc/motd

   BeginGroupIfNoLineContaining "connecting"
        InsertFile "$(addendum)"      
   EndGroup
   }

files:

   /etc/motd mode=644 o=root g=root action=fixplain

#####
#
# END cf.motd
#
#####