I'm new with cfengine. I created a simple promise that creates a file named testing into /etc/test-cfengine
body common control
{
bundlesequence =>{"create_test_file"};
}
bundle agent create_test_file
{
files:
"/etc/test-cfengine/test-file"
edit_line => addline,
create => "true";
}
bundle edit_line addline
{
insert_lines: "Cfengine is running nicely.";
}
When I run cf-agent -K (after editing promises.cf and including the promise) I notice that test-file exists in /etc/test-cfengine. But when I go to the client I notice that the promise exists, but the test-file does not.
So the promise is propagating to the clients, but not triggering.
How can I be sure that the file exists in all the clients?