Sunday, December 27, 2009

cfengine3 install note - on processing

1. 取得並安裝
wget http://www.cfengine.org/tarballs/cfengine-3.0.3.tar.gz
tar zxvf cfengine-3.0.3.tar.gz
cd cfengine-3.0.3
./configure; make install

2. copy 基本設定檔
mkdir -p /var/cfengine/masterfiles
cp /usr/local/share/doc/cfengine/*.cf /var/cfengine/masterfiles/

3. 第一次執行
cf-key
cd /var/cfengine/masterfiles
cf-agent --bootstrap
這裡會出現兩個錯誤 把下面兩個檔案 copy 到 /var/cfengine/masterfiles
cp /usr/local/share/doc/cfengine/inputs/failsafe.cf .
cp /usr/local/share/doc/cfengine/inputs/update.cf .
再執行一次 cf-agent --bootstrap

No comments:

Post a Comment