[1] provides these initial steps to get cfengine running from scratch
(after make; make install):

mkdir -p /var/cfengine/masterfiles
cp /usr/local/share/doc/cfengine/inputs/*.cf /var/cfengine/masterfiles
cp /usr/local/share/doc/cfengine/cfengine_stdlib.cf /var/cfengine/masterfiles
/usr/local/sbin/cf-key
cd /var/cfengine/masterfiles
/usr/local/sbin/cf-agent --bootstrap

It is here stated that cfengine is running on your system. This is not
correct, you need to run cf-agent one more time to get the one-time
start of cf-serverd+cf-monitord and to get cf-execd added to crontab.

[2] provides these initial steps:

host$ sudo cf-agent
host$ sudo cp  /usr/local/share/doc/cfengine/inputs/*cf /var/cfengine/inputs/
host$ sudo cf-agent
host$ sudo cf-agent

In this case cfengine *is* running, but there are some problems here
as well - cf-key has not been run and there is some confusion whether
cf-agent is/should be run out of /usr/local/sbin or /var/cfengine/bin.

Combining these two methods, I find that this is the quickest way to
get cfengine running (ignoring "good" errors) after make; make
install:

/usr/local/sbin/cf-agent 2>&1 >/dev/null
cp /usr/local/share/doc/cfengine/inputs/*cf /var/cfengine/inputs/
/usr/local/sbin/cf-agent 2>&1 >/dev/null
/usr/local/sbin/cf-key
/usr/local/sbin/cf-agent

Here is the result, all is well:
bash-3.00# ps -ef|grep cf-
    root 18852     1   0 09:46:59 ?           0:00 /var/cfengine/bin/cf-serverd
    root 18844     1   0 09:46:58 ?           0:00 /var/cfengine/bin/cf-monitord
bash-3.00# crontab -l|grep cf-
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /var/cfengine/bin/cf-execd -F
bash-3.00#

I find that [1] and [2] are inconsistent and that neither are fully
correct, but [2] is really close. It is a good thing that there are
such "Getting started" recipes; I wish I had these when I first
started with cf3...

- Erlend

[1]: 
http://www.cfengine.org/manuals/cf3-tutorial.html#Getting-started-with-the-Community-Edition
[2]: http://www.cfengine.org/pages/getting_started
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to