[Fai-commit] r5858 - in trunk: bin debian

Thomas Lange lange at alioth.debian.org
Fri Jul 9 22:17:40 UTC 2010


Author: lange
Date: 2010-07-09 22:17:39 +0000 (Fri, 09 Jul 2010)
New Revision: 5858

Modified:
   trunk/bin/fai-do-scripts
   trunk/debian/changelog
Log:
fai-do-scripts: add cfengine 3 support

Modified: trunk/bin/fai-do-scripts
===================================================================
--- trunk/bin/fai-do-scripts	2010-07-09 22:06:05 UTC (rev 5857)
+++ trunk/bin/fai-do-scripts	2010-07-09 22:17:39 UTC (rev 5858)
@@ -5,7 +5,7 @@
 # fai-do-scripts - call configuration scripts for every defined class
 #
 # This script is part of FAI (Fully Automatic Installation)
-# (c) 2003-2009 by Thomas Lange, lange at informatik.uni-koeln.de
+# (c) 2003-2010 by Thomas Lange, lange at informatik.uni-koeln.de
 # Universitaet zu Koeln
 #
 #*********************************************************************
@@ -26,7 +26,7 @@
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 #*********************************************************************
 
-version="version 1.7.1, 1-nov-2009"
+version="version 1.8, 10-july-2010"
 
 # variables needed: $classes, $cfclasses, $LOGDIR
 # 
@@ -116,6 +116,14 @@
 	    fc_check_status $file $exitcode | tee -a $LOGDIR/shell.log
 	;;
 
+	*"cf-agent"*)
+	    echo "Executing cf-agent: $file"
+	    echo "=====   cf-agent: $file   =====" >> $LOGDIR/cfagent.log 2>&1
+	    ./$file $cfagentdebug -KI -D${cfclasses} >> $LOGDIR/cfagent.log 2>&1
+	    savemaxstatus $?
+	    fc_check_status $file $exitcode | tee -a $LOGDIR/cfagent.log
+	;;
+
 	*"cfagent"*)
 	    echo "Executing cfagent: $file"
 	    echo "=====   cfagent: $file   =====" >> $LOGDIR/cfagent.log 2>&1
@@ -157,7 +165,7 @@
     local ex
     ex=$1
     cat <<-EOF
-        fai-do-scripts $version. Copyright (C) 2003-2009 Thomas Lange
+        fai-do-scripts $version. Copyright (C) 2003-2010 Thomas Lange
         Read the manual page fai-do-scripts(1) for more information.
 
         Usage: fai-do-scripts [OPTION] DIRECTORY

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2010-07-09 22:06:05 UTC (rev 5857)
+++ trunk/debian/changelog	2010-07-09 22:17:39 UTC (rev 5858)
@@ -40,6 +40,7 @@
   * 99-discover-bug: remove unused script
   * 30-demo: replace script with shell code in 10-misc
   * 40-misc: replace cfengine script with shell script
+  * fai-do-scripts: add cfengine 3 support
 
   [ Michael Tautschnig ]
   * control: Move setup-storage to its own package (fai-setup-storage). Thanks




More information about the Fai-commit mailing list