Rossberry CFEngine RPMS and related files
To use these rpms you need two machines; a 'master' and a 'client'. They
need to have port 5308 open to each other. (an iptables rule similar to
-A INPUT -i INTERFACENAME -p tcp -m tcp --dport 5308 -j ACCEPT
will work.
Installation steps
- Select the master
- Install the cfengine rpm
- Place rossberry_cf in /etc/sysconfig and update with the IP and subnet of
the master
- Install rossberry-cf-master rpm
- You should see
Q: ".../bin/date": Wed Apr 20 07:57:02 CDT 2011
I: Last 1 quoted lines were generated by promiser "/bin/date"
R: Hello, world.
Q: ".../bin/date": Wed Apr 20 07:57:03 CDT 2011
I: Last 1 quoted lines were generated by promiser "/bin/date"
R: Hello, world.
on the screen and in /var/log/messages. There should also be an empty
file called /tmp/CFENGINE_WORKS and one called /cf-test.txt.
- run
echo "#Hi" > /var/cfengine/masterfiles/inputs/hi.cf
cf-agent -K
cat /var/cfengine/inputs/hi.cf
and the file should now exist with the expected content.
- On the client, install the cfengine rpm
- Copy rossberry_cf to /etc/sysconfig and change the IP for the
master and the allowed hosts (should be the master)
- Install the rossberry-cf-client rpm
- You should see
Q: ".../bin/date": Wed Apr 20 07:57:02 CDT 2011
I: Last 1 quoted lines were generated by promiser "/bin/date"
R: Hello, world.
Q: ".../bin/date": Wed Apr 20 07:57:03 CDT 2011
I: Last 1 quoted lines were generated by promiser "/bin/date"
R: Hello, world.
on the screen and in /var/log/messages. There should also be an empty
files called /tmp/CFENGINE_WORKS, and /cf-test.txt, and /var/cfengine/inputs/hi.cf should
exist. (It will have been copied from the master).
- You can create another file in
master:/var/cfengine/masterfiles/inputs, run cf-agent -K on either the
master or the client and it should be copied to /var/cfengine/inputs on
the machine you are running on. Note that the file cannot be empty and
all lines should be commented out until you understand the syntax.
- If you create a file in /var/cf-rootdir and run cf-agent -K that file will
be copied into the file structure of the machine you are on. This will
replace existing files!! If you create /var/cf-rootdir/etc/passwd, if will be
replaced!
CONGRATULATIONS!!
You know have a working cfengine pair and have demonstrated
- Reporting
- Creating a file
- Updating from the master
- Secure file copy within the cfengine control tree
- Secure file copy into the client's general file system
- cf-execd running (check the log files after 15 minutes)
|