Migration2cfengine2
From FAIWiki
In etch, cfengine is removed and "only" cfengine2 is available. So to be able to use the same configdir for etch and sarge (without installing cfengine1 (which has security problems) on etch), you'll have to convert to cfengine2 now. It's quite straightforward:
This is whats needed to do:
<h01ger> to migrate the scripts from cfengine to cfengine2, is it enought to s#/usr/bin/cfengine#/usr/sbin/cfagent -f# in the first line of the script?
<Mrfai> h01ger: add the any:: line after control:. Like this
<Mrfai> control:
<Mrfai> any::
<Mrfai> also remove this line
<Mrfai> OutputPrefix = ("cfengine")
<Mrfai> Then it should work with cfengine2
If you're using fai 2.8.4 with cfengine2 you also need to do the following (not needed in fai3 (allready done there):
--- scripts/fai-do-scripts (Revision 4107)
+++ scripts/fai-do-scripts (Arbeitskopie)
@@ -110,7 +110,7 @@
*"cfagent"*)
echo "Executing cfagent: $file"
echo "===== cfagent: $file =====" >> $LOGDIR/cfagent.log 2>&1
- ./$file --no-lock -v -f $file -D${cfclasses} >> $LOGDIR/cfagent.log 2>&1
+ ./$file -qKkI -D${cfclasses} >> $LOGDIR/cfagent.log 2>&1
fc_check_status $file $? | tee -a $LOGDIR/cfagent.log
;;
