Hi,
I just started with CFEngine. I have 1 policy servers and 2 clients (Ubuntu 14.04 Desktop , Ubuntu 12.04 Desktop) Started with creating a local policy on the Ubuntu 14.04 Desktop with CFEngine agent installed on it. This policy removes an existing "telnet" client.
That local policy worked fine. So I wanted to use the policy on my policy server which then should push it to the clients after 5 minutes. This does not work.
These are the steps I did on the policy server:
Step1: Create a file remove_packages.cf in the /var/cfengine/masterfiles directory
Code:
bundle agent remove_packages
{
methods:
"telnet" usebundle => package_absent("telnet");
}
Step2: vi promises.cf in the /var/cfengine/masterfiles directory and add
Code:
body common control
{
bundlesequence => {
remove_packages,
Step3: vi promises.cf in the /var/cfengine/masterfiles directory and add
Code:
inputs => {
# JF 15/08/2014 remove telnet package
"remove_packages.cf",
};
Step4: Check on mistakes
Code:
root@ubuntu:/var/cfengine/masterfiles# cf-promises ./promises.cf
Step5: Wait 5 minutes until it replicates to the clients..
Here nothing happens at the clients ... As you can see it is still present:
root@ubu14client:~# which telnet
/usr/bin/telnet
Can somebody explain me why it does not work?
Many thanks for helping me out!
Kr,
Joeri